Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Specify Simulation Time by an Array

Status
Not open for further replies.

FredFoobar

Automotive
Aug 4, 2010
1

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
 
Replies continue below

Recommended for you

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor