Main Content

MATLAB의 자동화된 고정소수점 변환

Fixed-Point Converter 앱을 사용하여 고정소수점으로 변환

Fixed-Point Converter 앱을 사용하여 부동소수점 MATLAB® 코드를 고정소수점 MATLAB 코드로 변환할 수 있습니다.

fiaccel을 사용하여 명령줄에서 부동소수점 MATLAB 코드를 고정소수점 MATLAB 코드로 변환할 수 있습니다.

Fixed-Point ConverterMATLAB 코드를 고정소수점으로 변환

함수

fiaccelAccelerate fixed-point code or convert floating-point MATLAB code to fixed-point MATLAB code
coder.config고정소수점 변환 또는 단정밀도 변환을 위한 구성 객체 생성
coder.approximationCreate function replacement configuration object
coder.allowpcodeP 코드 파일로부터 코드 생성
coder.constFold expressions into constants in generated code
coder.extrinsic함수를 외재적 함수로 선언하고 MATLAB에서 실행
coder.inlineControl inlining of current function in generated code
coder.inlineCallInline called function in generated code (R2024a 이후)
coder.loadLoad compile-time constants from MAT-file or ASCII file
coder.newtypeCreate coder.Type object to represent type of an entry-point function input
coder.nonInlineCallPrevent inlining of called function in generated code (R2024a 이후)
coder.nullcopy코드 생성 시 초기화되지 않은 변수 선언
coder.resizecoder.Type 객체의 크기 변경
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.varsizeDeclare variable-size data

클래스

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.StructType입력 사양에 허용되는 MATLAB 구조체형 배열 집합 표현
coder.TypeRepresent set of MATLAB values acceptable for input specification

도움말 항목

자동화된 고정소수점 변환 워크플로

고정소수점 데이터형 제안

고정소수점으로 변환

고정소수점 변환 검증

지원되는 언어 기능

명령줄 워크플로

문제 해결

Generated Fixed-Point Code

Avoid issues with generated fixed-point code.

Data Type Issues in Generated Code

Highlight potential data type issues in report.

Debug Numerical Issues in Fixed-Point Conversion Using Variable Logging

Learn how to debug your fixed-point code when you need more than out of the box conversion.

Why Does the Fixed-Point Converter App Not Propose Data Types for System Objects?

Troubleshoot missing data type proposals for System objects.

Slow Operations in the Fixed-Point Converter App

Determine whether code generation readiness screening is causing slow operations in the app.