MATLAB: Simulation time in Simulink

daily datasimulationsimulation timesimulink

I'm a recent user of Simulink. I would like to know whether the simulation stop time 24 is correct to simulate 24 hours (and so the signal in input has to be referred to a day of measurations with time = 24) or I have to indicate 3600s*24 = 86'400 as a simulation stop time (and so the input daily signal has to be created upon 86400s). Thank you for your precious help.

Best Answer

The simulation time is specified in seconds, so you would need to use 86400 to set a day's duration. (Note however that this doesn't mean the simulation will run for 24hrs in real-time, just that the data you provide is used as if provided for a 24hr period)