Contenuto principale

La traduzione di questa pagina non è aggiornata. Fai clic qui per vedere l'ultima versione in inglese.

Creazione di oggetti in virgola fissa in MATLAB

fi e numerictype per creare dati in virgola fissa

È possibile creare dati in virgola fissa utilizzando l'oggetto Fixed-Point Designer™ fi. All’interno del costruttore fi è possibile specificare le proprietà numerictype e fimath. Ogni oggetto fi ha un oggetto numerictype associato. L'oggetto numerictype memorizza le informazioni sull'oggetto fi comprese la lunghezza della parola, la lunghezza della frazione e la presenza del segno. L'oggetto numerictype è equivalente all'oggetto fixdt in Simulink®.

Funzioni

espandi tutto

fiConstruct fixed-point numeric object
fimathSet fixed-point math settings
fixed.fimathLikeReturn fimath object like the input (Da 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
lowerboundLower bound of range of fi object
lsbScaling of least significant bit of fi object, or value of least significant bit of quantizer object
rangeNumerical range of fi or quantizer object
upperboundUpper bound of range of fi object
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 (Da 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

Classi

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

Argomenti

Costruzione di oggetti numerici in virgola fissa

Impostazioni per la matematica in virgola fissa

Preferenze in virgola fissa

Informazioni sul tipo numerico

Applicazioni

Risoluzione dei problemi

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.

Esempi in primo piano