주요 콘텐츠

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

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
cast64BitIntToFiCast 64-bit integer types to an equivalent fi object type
castFiToIntCast fi object to equivalent integer data type
castFiToMATLABCast fi object type to an equivalent built-in MATLAB data type
castIntToFiCast an integer data type to equivalent fi type

도움말 항목

문제 해결

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.

추천 예제