Info
This question is closed. Reopen it to edit or answer.
How to import values according to time in Simulink?
1 view (last 30 days)
Show older comments
Hello all, please I need your help
I have a series of pre-determined values on paper (actually in Excel), say 5, 10, 15, 20... A specific input (like constant block) in my Simulink model requires to take these values every 0.1 seconds of the simulation time. For example:
@0.1 secs -> [5] , @0.2 secs -> [10] , @0.3 secs -> [15], @0.4 secs -> [20] etc.
The values are thousands. Probably I should construct this vector in workspace and assign at every value its time stamp. How to do all this stuff?
I read the section with TimeSeries and From Workspace block but can't understand it.
A simplified example or answer would be invaluable. Thank you very much
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!