×
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

Specify Simulation Time by an Array

Specify Simulation Time by an Array

Specify Simulation Time by an Array

(OP)

Hi, im new to Matlab/Simulink and don't know if simulink can provide the functionality i want:
I have done a measurement and the results are two arrays, one contains the time, the second one the corresponding data value (they have equal length). I want to have the simulation time set exactly equal to my first array, in each step the next value in the second array should be used as single input.
So, when not changing this input in the model the result is my second array.

I have searched for it but couldnt find any solution, is there a workaround for it or is simulink just not made for this kind of application?

Thanks for help

RE: Specify Simulation Time by an Array

So you want to explicitly define a step size, variably, during a run. It may be possible to do this, but more normally you let Simulink run at whatever step size it wants and let it interpolate your inputs as necessary. I don't have Simulink on this machine to check.


 

Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies  http://eng-tips.com/market.cfm?

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