how to store and use previous values of a variable in simulink during simulation?
5 views (last 30 days)
Show older comments
So I would like to be able to store values and DURING the simulation being able to take 'N' samples that was calculated before and use them . (say like last 500 samples)
Yes I know that you can use delays for the example but what I would like to program is more complicated than the example so using delays is not an option.
Thanks ,
Vemuri
1 Comment
Kaustubha Govind
on 17 Feb 2014
I received a personal message from you regarding this question. Please be considerate and avoid sending personal messages to contributors on this forum. All users participate voluntarily, and in their spare time. It is forum etiquette to first search for a solution to your problem on the forum to see if it has been answered before. If you do not find a solution, formulate your problem well and post it as a question on the forum. Be patient and allow time for it to be answered.
Answers (1)
Kaustubha Govind
on 17 Feb 2014
As far as I know, using some of form of delays is the only way to store values from previous time-steps. Perhaps you could explain why delays are not adequate?
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!