Main Content

La traducción de esta página aún no se ha actualizado a la versión más reciente. Haga clic aquí para ver la última versión en inglés.

Crear objetos de punto fijo en MATLAB

Uso de fi y numerictype para la creación de datos de punto fijo

Puede crear datos de punto fijo utilizando el objeto fi de Fixed-Point Designer™. Dentro del constructor de fi se pueden especificar propiedades numerictype y fimath. Cada objeto fi tiene un objeto numerictype asociado. El objeto numerictype almacena información sobre el objeto fi, incluida la longitud de palabra, la longitud de fracción y representación de signo. El objeto numerictype es equivalente al objeto fixdt en Simulink®.

Funciones

expandir todo

fiCrear un objeto numérico de punto fijo
fimathSet fixed-point math settings
fixed.fimathLikeReturn fimath object like the input (desde 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
lowerboundLímite inferior del rango del objeto fi
lsbScaling of least significant bit of fi object, or value of least significant bit of quantizer object
rangeNumerical range of fi or quantizer object
upperboundLímite superior del rango del objeto fi
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 (desde R2021a)
resetReset objects to initial conditions
setSet or display property values for quantizer objects
mat2strConvertir matriz en cadena
tostringConvertir un objeto fi, fimath, numerictype o quantizer en una cadena

Clases

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

Temas

Crear objetos numéricos de punto fijo

Ajustes matemáticos de punto fijo

Preferencias de punto fijo

Información sobre el tipo numérico

Aplicaciones

Solución de problemas

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.