What is stored integer value of a fi object?
2 views (last 30 days)
Show older comments
I am not able to understand the purpose of the 'fi object' creation and other associated concepts, such as, stored integer of a fi object, its binary/dec representation etc.
Take, for instance, this example code:
>> a = fi(pi, 1, 8, 3)
a =
3.1250
DataTypeMode: Fixed-point: binary point scaling
Signedness: Signed
WordLength: 8
FractionLength: 3
>> in_x = storedInteger(a)
in_x =
25
>> bin(a)
ans =
00011001
>> dec(a)
ans =
025
Please explain what is happening over here.
0 Comments
Answers (1)
Andy Bartlett
on 12 Feb 2018
Please see https://www.mathworks.com/help/fixedpoint/ug/scaling_f6389.html
0 Comments
See Also
Categories
Find more on Create Fixed-Point Objects in MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!