标签: matlab
我想使用比例因子2的16位固定表示1.5。所以我输入命令窗口
>> a = int16(1.5 .* 2) a = 3
以下的assgiment语句导致变量被强制为int16?
>> b = a b = 3 >> b = b / 2 b = 2 % But I expected 1.5 % why integer operation? % I want the variable b to become double type.
如何让变量'b'具有双重类型?