MATLAB: Does Simulink support step sizes of data types other than double

configurationdatadoublenonparameterssimulinksize;startstepstoptimetype

If I set the 'Fixed-step size' parameter for my simulation using a variable of a data type other than double, I receive the following error when I attempt to simulate:
Invalid Fixed Step Size specified in the Configuration Parameters dialog for block diagram 'MODEL'
I receive similar errors when setting the 'Start time', 'Stop time', 'Min step size', 'Max step size' and 'Initial step size' parameters if the value is not a double.

Best Answer

The ability to specify values of data type other than double for the parameters 'Fixed-step size', 'Start time', 'Stop time', 'Min step size', 'Max step size' and 'Initial step size' is not available in Simulink.
To work around this issue, typecast the variable to a double using the DOUBLE function. For example, instead of specifying the value as 'x', use 'double(x)'.