MATLAB: The simulation time as a parameter simulink How can I use the simulink time as a parameter in an equation where I need to use the simulation time as a parameter Best Answer Maybe using the Clock block Related SolutionsMATLAB: How to run simulation in real time To slowdown a simulation to something close to real-time, try my submission here:http://www.mathworks.com/matlabcentral/fileexchange/21908-simulink%C2%AE-real-time-executionAs described by Jangjun, this is not accurate real-time, but if what you want is just to observe scopes and change parameters while the simulation runs, this should help. MATLAB: Simulation time Please take a look at this page in the Simulink documentation:Saving and Restoring the Simulation State as the SimState Related QuestionAccess Simulation Time in Simulink ModelUpdating simulink block parameter as the simulation runs.How to vary a block parameter as if it is tied to a dynamic simulation parameter such as a block input and update at each simulation time step in Simulink 6.5 (R2006b)
Best Answer