How to quickly and simply convert floating-point to fixed-point in matlab script?
조회 수: 9 (최근 30일)
이전 댓글 표시
I want to compare the performance and speed of running the same script as floating-point and fixed-point. How do I simple convert the script or parts of the script into fixed-point from double?
I have tried fi(). However there seems to be a problem using it within function such as fft's. What is the best way to do this?
댓글 수: 0
답변 (1개)
Gargi Patil
2021년 4월 14일
MATLAB provides several tools for floating point to fixed point. There is a toolbox for Fixed-Point Conversion that enables conversion to fixed point:
You can refer to the Fixed-point converter app given in the toolbox:
Furthermore, to effectively convert FFT to fixed point, you can refer to the following documentation as a starting point:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Type Conversion and Casting에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!