What is stored integer value of a fi object?
8 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Andy Bartlett
2018-2-12
Please see https://www.mathworks.com/help/fixedpoint/ug/scaling_f6389.html
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Create Fixed-Point Objects in MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!