And what is the best way to build a model from the beginning in a smaller data type like uint16 wihout using many Cast blocks and Converters?
I would like to convert data of double type to single type before code generation in 2020A Simulink, without using Cast blocks on most functions.
조회 수: 1 (최근 30일)
이전 댓글 표시
I would like to do this without using Cast blocks on most functions.
채택된 답변
Fangjun Jiang
2023년 3월 7일
See this example
댓글 수: 3
Fangjun Jiang
2023년 3월 7일
The code generated after running set_param(gcs, 'DataTypeOverride', 'Single') shows using real32_T, which is float (single).
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!