フィルターのクリア

Analyzing and creating fixed-point data types.

2 ビュー (過去 30 日間)
Torsten Knodt
Torsten Knodt 2013 年 2 月 11 日
Hello, is there a single function to get the minimum and maximum value representable by a specific fixed-point data type? I am aware that I can calculate it but wondering if there is really no function for it. My second question is the same thing around. Is there a function to create a fixed-point data type based on minimum, maximum and scaling, which does not need a word length or the like before? Again I am aware that I can calculate it but would prefer a ready to use function if available.
Thanks in Advance Torsten Knodt

採用された回答

Kaustubha Govind
Kaustubha Govind 2013 年 2 月 12 日
I don't have a lot of experience with this, but I believe this should be possible in Simulink using the Fixed-Point Tool.
In MATLAB, it looks like you need the LOWERBOUND and UPPERBOUND functions to find the min/max for a fixed-point type. Not sure how you can do the converse, but it might be worth looking at the Fixed-Point Functions reference to see if you can find anything useful.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFixed-Point Designer についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by