How to run a Simulink model with single precision?

2 次查看(过去 30 天)
Hey guys,
is there a way to run a Simulink model in floating point single precision without adding several converter blocks? Does anyone know a simpler possibility, i.e. by changing some general settings?
Cheers, Kev

回答(1 个)

Kaustubha Govind
Kaustubha Govind 2013-6-28
Typically the data type is propagated from the Source blocks in the model - if you configure these blocks to produce a single type, the rest of your model might become single-precision too.
Another option that I can think of becomes available only if you have a Simulink Fixed-Point license. I believe setting the Data Type Override option to 'Single' and Data Type Override applies to 'All numeric types' on the Fixed-Point Tool should force all data types to become single-precision.

类别

Help CenterFile Exchange 中查找有关 Fixed Point 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by