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.

Conversión manual a punto fijo en MATLAB

Conversión asistida de algoritmos de punto flotante a algoritmos de punto fijo

Utilice la función buildInstrumentedMex para instrumentar un algoritmo y registrar los valores mínimos y máximos de todas las variables con nombre e intermedias. Utilice la función showInstrumentationResults para proponer tipos de datos de punto fijo basados en estos valores registrados.

Funciones

expandir todo

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
fiCrear un objeto numérico de punto fijo
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 (desde R2020a)
cast64BitIntToFiCast 64-bit integer types to an equivalent fi object type (desde R2020a)
castFiToIntCast fi object to equivalent integer data type (desde R2020a)
castFiToMATLABCast fi object type to an equivalent built-in MATLAB data type (desde R2020a)
castIntToFiCast an integer data type to equivalent fi type (desde R2020a)

Temas

Solución de problemas

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.