×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to create following signal/function in MATLAB

How to create following signal/function in MATLAB

How to create following signal/function in MATLAB

(OP)
Hi everyone!

I want to obtain the following function in MATLAB.

http://i655.photobucket.com/albums/uu271/harsham05..." border="0" alt="" />

I created the same in SIMULINK and used "to workspace" block to transfer it to MATLAB workspace.

But the transferred signal is of unequal sample intervals. Hence Im unable to use "lsim" to simulate my transfer function in MATLAB.

Thank you!

RE: How to create following signal/function in MATLAB

Change the solver to a descritized one in the configuration parameters. Put say 0.001s interval to start with.

peace
Fe (IronX32)

RE: How to create following signal/function in MATLAB

(OP)
Thank you FeX32!

I changed the SIMULINK solver type from a variable type(default, ode45 used to preserve accuracy with minimum number of samples) to fixed type with a sampling period of 0.001 sec.

It works only for a simulation time of < 1 sec.



RE: How to create following signal/function in MATLAB

No problem!
Glad it works for you.

peace
Fe (IronX32)

RE: How to create following signal/function in MATLAB

(OP)
Thanks once again!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources