Hauptinhalt

Erstellen von Festkomma-Objekten in MATLAB

fi und numerictype für die Festkomma-Datenerstellung

Mithife des Fixed-Point Designer™ fi-Objekts können Sie Festkommadaten erstellen. Im fi-Konstruktor können Sie die Eigenschaften numerictype und fimath festlegen. Mit jedem fi-Objekt ist ein numerictype-Objekt verknüpft. Im numerictype-Objekt werden Informationen zum fi-Objekt gespeichert, darunter Wortlänge, Bruchlänge und Vorzeichen. Das numerictype-Objekt entspricht dem fixdt-Objekt in Simulink®.

Funktionen

alle erweitern

fiConstruct fixed-point numeric object
fimathSet fixed-point math settings
fixed.fimathLikeReturn fimath object like the input (Seit R2022b)
globalfimathConfigure global fimath and return handle object
removefimathRemove fimath from fi object
removeglobalfimathprefRemove global fimath preference
resetglobalfimathSet global fimath to MATLAB factory default
setfimathAttach fimath object to fi object
fiprefSet fixed-point preferences
savefiprefSave fi preferences for next MATLAB session
isfiprefDetermine whether input is fipref object
lowerboundUntergrenze des Bereichs eines fi-Objekts
lsbScaling of least significant bit of fi object, or value of least significant bit of quantizer object
rangeNumerical range of fi or quantizer object
upperboundObergrenze des Bereichs eines fi-Objekts
sortSort elements of real-valued fi object in ascending or descending order
fixed.aggregateTypeCompute aggregate numerictype
getProperty values of object
isequalDetermine whether real-world values of two fi objects are equal, or determine whether properties of two fimath, numerictype, or quantizer objects are equal
isequalnDetermine equality of fixed-point arrays, treating NaN values as equal (Seit R2021a)
resetReset objects to initial conditions
setSet or display property values for quantizer objects
mat2strConvert matrix to string
tostringConvert fi, fimath, numerictype, or quantizer object to string

Klassen

numerictypeConstruct an embedded.numerictype object describing fixed-point or floating-point data type

Themen

Konstruieren numerischer Festkomma-Objekte

Festkomma-Mathematikeinstellungen

Festkomma-Präferenzen

Numerische Typeninformationen

Anwendungen

Fehlersuche

Resolve Error: Mismatched fimath

Troubleshoot mismatched fimath errors.

Resolve Error: Data Type Mismatch

Troubleshoot data type mismatch errors.

Resolve Error: fi*non-fi

Troubleshoot fi*non-fi errors.

fi Constructor Does Not Follow globalfimath Rules

Troubleshoot getting the fi constructor to follow globalfimath rules.

Enthaltene Beispiele