>> a=uint32(120);b=single(22.809);c=73.226;
ab=a*b
错误使用 *
整数只能与相同类的整数或标量双精度值组合使用。
>> ac=a*c
ac =
8787
>> bc=b*c
bc =
1.6702e+03
>> str='hello'
str =
hello
>>
newstr=str-44.3
newstr =
59.7000 56.7000 63.7000 63.7000 66.7000
>>
%估计是ASCALL码的加减、
>> whos
Name Size Bytes Class Attributes
a 1x1 4 uint32
ac 1x1 4 uint32
b 1x1 4 single
bc 1x1 4 single
c 1x1 8 double
newstr 1x5 40 double
str 1x5 10 char
>>