이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
MATLAB의 자동화된 고정소수점 변환
fiaccel을 사용하여 고정소수점으로 변환
fiaccel
을 사용하여 명령줄에서 부동소수점 MATLAB® 코드를 고정소수점 MATLAB 코드로 변환할 수 있습니다.
함수
fiaccel | Accelerate fixed-point code or convert floating-point MATLAB code to fixed-point MATLAB code |
coder.config | 고정소수점 변환 또는 단정밀도 변환을 위한 구성 객체 생성 |
coder.approximation | Create function replacement configuration object |
coder.allowpcode | P 코드 파일로부터 코드 생성 |
coder.const | Fold expressions into constants in generated code |
coder.extrinsic | 함수를 외재적 함수로 선언하고 MATLAB에서 실행 |
coder.float2fixed.skip | Exclude functions from fixed-point conversion (R2024b 이후) |
coder.inline | Control inlining of current function in generated code |
coder.inlineCall | Inline called function in generated code (R2024a 이후) |
coder.load | Load constants from MAT file or ASCII file at code generation time |
coder.newtype | Create coder.Type object to represent type of an entry-point
function input |
coder.nonInlineCall | Prevent inlining of called function in generated code (R2024a 이후) |
coder.nullcopy | 생성 코드에서 초기화되지 않은 변수 선언하기 |
coder.resize | coder.Type 객체의 크기 변경 |
coder.target | Determine if code generation target is specified target |
coder.typeof | Create coder.Type object to represent the type
of an entry-point function input |
coder.unroll | Unroll for -loop by making a copy of
the loop body for each loop iteration |
coder.varsize | Resolve size incompatibility errors and declare upper bounds |
클래스
coder.mexconfig | Code acceleration configuration object for use with
fiaccel |
coder.FixPtConfig | Floating-point to fixed-point conversion configuration object |
coder.ArrayType | 입력 사양에 허용되는 MATLAB 배열 집합 표현 |
coder.Constant | Specification of constant value for code generation |
coder.EnumType | Represent set of MATLAB enumerations acceptable for input specification |
coder.FiType | Represent set of MATLAB fixed-point arrays acceptable for input specification |
coder.PrimitiveType | 입력 사양에 허용되는 논리형 배열, 숫자형 배열 또는 문자형 배열 집합 표현 |
coder.StructType | 입력 사양에 허용되는 MATLAB 구조체형 배열 집합 표현 |
coder.Type | 입력 사양에 허용되는 MATLAB 값 집합 표현 |
도움말 항목
자동화된 고정소수점 변환 워크플로
- Decide Which Workflow Is Right for Your Application
Learn the benefits of each conversion workflow to help you decide which one best fits your needs. - Fixed-Point Conversion Workflows
Learn which fixed-point conversion method best matches your end goal and your level of fixed-point expertise. - Automated Fixed-Point Conversion
Using the command line to perform automated fixed-point conversion. - Automated Fixed-Point Conversion Best Practices
Generate fixed-point code according to best practices. - Convert Fixed-Point Conversion Project to MATLAB Scripts
Use project settings for fixed-point conversion at the command line.
고정소수점으로 변환
- Specify Type Proposal Options
Specify options when proposing types for automated fixed-point conversion. - Generated Fixed-Point Code
Avoid issues with generated fixed-point code. - Replacing Functions Using Lookup Table Approximations
Generate lookup table approximations to replace custom functions or functions that are not supported for fixed point. - Custom Plot Functions
Visualize numerical differences during fixed-point conversion.
지원되는 언어 기능
- MATLAB Language Features Supported for Automated Fixed-Point Conversion
Learn which language features are and are not supported for automated fixed-point conversion. - Fixed-Point Code for MATLAB Classes
Use supported constructs and coding style best practices for fixed-point conversion of MATLAB classes. - System Objects Supported for Automated Fixed-Point Conversion
Use thefiaccel
function to automatically propose and apply data types for commonly used system objects.
명령줄 워크플로
- Propose Data Types Based on Simulation Ranges Using the fiaccel Function
Propose fixed-point data types based on simulation ranges using thefiaccel
function. - Propose Data Types Based on Derived Ranges Using the fiaccel Function
Propose fixed-point data types based on static ranges using thefiaccel
function. - Detect Overflows
Detect overflows at the command line. - Replace the exp Function with a Lookup Table
Replace a function with a lookup table approximation in fixed-point code generated with thefiaccel
function. - Replace a Custom Function with a Lookup Table
Replace a custom function with a lookup table approximation function by using thefiaccel
function. - Enable Plotting Using the Simulation Data Inspector
Inspect and compare floating-point and fixed-point logged input and output data. - Visualize Differences Between Floating-Point and Fixed-Point Results
Use a custom plot function to compare the behavior of the generated fixed-point code against the behavior of the original floating-point MATLAB code.
문제 해결
Avoid issues with generated fixed-point code.
Data Type Issues in Generated Code
Highlight potential data type issues in report.