Why is Model Linearizer producing incorrect results with single data types in MATLAB R2021b?

5 次查看(过去 30 天)
When using Simulink Control Design with a Simulink Model in R2021b, if the data type of a constant input source for a model is set as "single", the integrator part is ignored and the results from Model Linearizer are completely incorrect. Is this a Simulink limitation or is there a setting I need to change for the discrete-time integrator?

采纳的回答

MathWorks Support Team
This is a known issue with the Discrete Integrator block. The Discrete Integrator's Jacobian is what is used by Model Linearizer to produce the results, but this Jacobian is currently producing incorrect results for "single" data types.
This issue has been fixed in the release of MATLAB R2022b. However, the fix is not currently available for prior releases. Please use "double" precision data types as a workaround if you are constrained to use earlier releases. The links below provide some guidance on how to do so.
 
Linearize Blocks with Non-Floating-Point Data Types:
https://www.mathworks.com/help/releases/R2021b/slcontrol/ug/linearize-blocks-with-non-floating-point-signals-or-states.html
Data Type Override:
https://www.mathworks.com/help/releases/R2021b/simulink/ug/control-fixed-point-instrumentation-and-data-type-override.html

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Trimming and Linearization 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by