MATLAB: How to get sample time of the model through scrip

guiscriptsimulinkstateflow

Hi.,
How to get sample time of the model through scrip?

Best Answer

get_param(gcs, 'FixedStep')
This will only work for fixed step solvers. Note that the result returned is a string.