how to set the default datatype of simulink block output to single
조회 수: 4 (최근 30일)
이전 댓글 표시
how to set the default datatype of simulink block output to single, for example i just want the output datatype of signal builder set to signle, i do not want use data type convert to realize.

댓글 수: 2
Walter Roberson
2024년 12월 14일
According to https://stackoverflow.com/questions/23337769/change-standard-data-type-simulink-matlab-function-block
"It could by possible by changing the parameter "Default for underspecified data type" (DefaultUnderspecifiedDataType) in the Optimization category inside the Configuration Parameters of your model to single.
I'm not sure if it affects MATLAB function blocks, though."
답변 (1개)
Shuba Nandini
2024년 12월 17일
편집: Shuba Nandini
2024년 12월 17일
Hi,
I understand that you would like to set the default data type of the Signal Builder block to 'single.'
As of the Simulink R2018b release, the Signal Builder block only supports the 'double' data type. To work around this issue, you can place a Signal Conversion block at the output port of the Signal Builder block and configure its data type to 'single.'
Please refer to the following MATLAB documentation link to know more about Signal Conversion block:
Regards,
Shuba Nandini
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!