Contenuto principale

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

Conversione automatica in virgola fissa in MATLAB

Convertire in virgola fissa utilizzando fiaccel

Utilizzare fiaccel per convertire il codice MATLAB® in virgola mobile in codice MATLAB in virgola fissa dalla riga di comando.

Funzioni

fiaccelAccelerate fixed-point code or convert floating-point MATLAB code to fixed-point MATLAB code
coder.configCreate configuration object for fixed-point or single-precision conversion
coder.approximationCreate function replacement configuration object
coder.allowpcodeControl code generation from P-code files
coder.constFold expressions into constants in generated code
coder.extrinsicDeclare function as extrinsic and execute it in MATLAB
coder.float2fixed.skipExclude functions from fixed-point conversion (Da R2024b)
coder.inlineControl inlining of current function in generated code
coder.inlineCallInline called function in generated code (Da R2024a)
coder.loadLoad constants from MAT file or ASCII file at code generation time
coder.newtypeCreate coder.Type object to represent type of an entry-point function input
coder.nonInlineCallPrevent inlining of called function in generated code (Da R2024a)
coder.nullcopyDeclare uninitialized variables in generated code
coder.resizeResize coder.Type object
coder.targetDetermine if code generation target is specified target
coder.typeofCreate coder.Type object to represent the type of an entry-point function input
coder.unrollUnroll for-loop by making a copy of the loop body for each loop iteration
coder.varsizeResolve size incompatibility errors and declare upper bounds

Classi

coder.mexconfigCode acceleration configuration object for use with fiaccel
coder.FixPtConfigFloating-point to fixed-point conversion configuration object
coder.ArrayTypeRepresent set of MATLAB arrays acceptable for input specification
coder.ConstantSpecification of constant value for code generation
coder.EnumTypeRepresent set of MATLAB enumerations acceptable for input specification
coder.FiTypeRepresent set of MATLAB fixed-point arrays acceptable for input specification
coder.PrimitiveTypeRepresent set of logical, numeric, or character arrays acceptable for input specification
coder.StructTypeRepresent set of MATLAB structure arrays acceptable for input specification
coder.TypeRepresent set of MATLAB values acceptable for input specification

Argomenti

Workflow automatico di conversione in virgola fissa

Conversione in virgola fissa

Features della lingua supportata

Workflow a riga di comando

Risoluzione dei problemi

Generated Fixed-Point Code

Avoid issues with generated fixed-point code.

Data Type Issues in Generated Code

Highlight potential data type issues in report.