Main Content

MATLAB에서의 수동 고정소수점 변환

도움을 받아 부동소수점 알고리즘을 고정소수점 알고리즘으로 변환

buildInstrumentedMex 함수를 사용하여, 명명된 모든 중간 변수의 최솟값과 최댓값을 기록하기 위해 알고리즘을 계측할 수 있습니다. showInstrumentationResults 함수를 사용하여, 그러한 기록된 값을 기반으로 고정소수점 데이터형을 제안할 수 있습니다.

함수

모두 확장

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
fi고정소수점 숫자형 객체 생성
fimath고정소수점 수학 연산 설정 지정
numerictype고정소수점 또는 부동소수점 데이터형을 나타내는 embedded.numerictype 객체 생성
eye고정소수점 속성을 갖는 단위 행렬 만들기
ones고정소수점 속성을 갖는 모두 1로 구성된 배열 생성
zeros고정소수점 속성을 갖는 모두 0으로 구성된 배열 생성
cast변수를 다른 데이터형으로 형변환
cast64BitFiToIntCast fi object types that can be exactly represented to a 64-bit integer data type (R2020a 이후)
cast64BitIntToFiCast 64-bit integer types to an equivalent fi object type (R2020a 이후)
castFiToIntCast fi object to equivalent integer data type (R2020a 이후)
castFiToMATLABCast fi object type to an equivalent built-in MATLAB data type (R2020a 이후)
castIntToFiCast an integer data type to equivalent fi type (R2020a 이후)

도움말 항목

문제 해결

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.