how to maintaing the last value of a variable to be used in the next loop cycle of a simulation?
2 views (last 30 days)
Tony Castillo on 19 May 2022
I just wondering how to extract/save the last value registered from a time-series, to furtherly use it in the following loop iteration as the initial value (for a specific variable). I think worth highlighting this is a model designed in Simulink and ran using scripts of MATLAB.
Thanks in advance !!