Hauptinhalt

Die Übersetzung dieser Seite ist veraltet. Klicken Sie hier, um die neueste Version auf Englisch zu sehen.

Manuelle Festkomma-Konvertierung in MATLAB

Unterstützte Konvertierung von Gleitkomma-Algorithmus in Festkomma-Algorithmus

Verwenden Sie die Funktion buildInstrumentedMex, um Ihren Algorithmus zur Protokollierung der Mindest- und Höchstwerte aller benannter und intermediärer Variablen zu instrumentieren. Verwenden Sie die Funktion showInstrumentationResults, um auf Grundlage dieser protokollierten Werte Festkomma-Datentypen vorzuschlagen.

Funktionen

alle erweitern

buildInstrumentedMexGenerate compiled C code function including logging instrumentation
showInstrumentationResultsResults logged by instrumented, compiled C code function
clearInstrumentationResultsClear results logged by instrumented, compiled C code function
fiConstruct fixed-point numeric object
fimathSet fixed-point math settings
numerictypeConstruct an embedded.numerictype object describing fixed-point or floating-point data type
eyeCreate identity matrix with fixed-point properties
onesCreate array of all ones with fixed-point properties
zerosCreate array of all zeros with fixed-point properties
castCast variable to different data type
cast64BitFiToIntCast fi object types that can be exactly represented to a 64-bit integer data type
cast64BitIntToFiCast 64-bit integer types to an equivalent fi object type
castFiToIntCast fi object to equivalent integer data type
castFiToMATLABCast fi object type to an equivalent built-in MATLAB data type
castIntToFiCast an integer data type to equivalent fi type

Themen

Fehlersuche

Resolve Error: Function Is Not Supported for Fixed-Point Conversion

Troubleshoot functions that are not supported for fixed-point conversion.

Resolve Error: fi*non-fi

Troubleshoot fi*non-fi errors.

Resolve Error: Data Type Mismatch

Troubleshoot data type mismatch errors.

Resolve Error: Mismatched fimath

Troubleshoot mismatched fimath errors.

Enthaltene Beispiele