Drop msb of fi object, producing a new fi object
This seems to do what I want.
Is there anything to go wrong with this approach?
Seems like I have dropped the msb from the number, changing it from a 5.2 fi numbe to a 4.2 fi number
>> a = fi(3,1,5,2);
>> b = fi(a,1,4,2);
>> a.bin
ans =
01100
>> b.bin
ans =
0111This seems to do what I want.
Is there anything to go wrong with this approach?
Seems like I have dropped the msb from the number, changing it from a 5.2 fi numbe to a 4.2 fi number
>> a = fi(3,1,5,2);
>> b = fi(a,1,4,2);
>> a.bin
ans =
01100
>> b.bin
ans =
0111 This seems to do what I want.
Is there anything to go wrong with this approach?
Seems like I have dropped the msb from the number, changing it from a 5.2 fi numbe to a 4.2 fi number
>> a = fi(3,1,5,2);
>> b = fi(a,1,4,2);
>> a.bin
ans =
01100
>> b.bin
ans =
0111 fixed_point, conversion MATLAB Answers — New Questions