Is there a command to find Representable MIN and MAX for any fixdt ?
7 ビュー (過去 30 日間)
古いコメントを表示
Can we find Representable minimum and maximum for any fixdt dat type created in command prompt
Example
fixdt(1,16,5)
Representable minimum = 1023.9675
Representable maximum = -1024
1 件のコメント
Prajith Chilummula
2019 年 1 月 8 日
The below link might help in finding the minimum and maximum for fixdt datatype:
https://www.mathworks.com/help/fixedpoint/ug/range-and-precision.html
回答 (1 件)
gpotiria
2019 年 6 月 4 日
Though is been a long time, an easy solution is:
[min_v,max_v]=range(fi(0,fixdt(1,16,5)))
And to see the proper maximum in the command you will need:
num2str(double(max_v),11)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!