Does Simulink support step sizes of data types other than double?

2 views (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
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)'.

More Answers (0)

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!