Can not convert USHORT MAX to ufix16_Sp01
8 次查看(过去 30 天)
显示 更早的评论
Dear bros,
In Simulink model, I use constant block which has value (65535) and data type is ufix16_Sp01 (fixdt(0,16,0.01,0)). But there is error
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/418928/image.png)
I understand that ufix16_Sp01 is unsigned with wordlength is 16.
So, Can anyone explain for me???
0 个评论
采纳的回答
James Tursa
2020-11-19
If you have a slope scaling of 0.01 and a bias of 0, doesn't that mean the max value is 65535*0.01 = 655.35?
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!