How to run a Simulink model with single precision?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
0 Commenti
Risposte (1)
Kaustubha Govind
il 28 Giu 2013
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.
0 Commenti
Vedere anche
Categorie
Scopri di più su Fixed Point in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!