
输出数组类型的数据,也可以把string类型的数据看做数组输出
- 输出数字
>> num = ;
>> disp(num)
- 输出字符串
>> disp('this is string')
this is string
>>
- 输出数字和字符串
>> num = ;
>> disp(['num:',num2str(num)])
num:
- 输出数组
>> a=[ ];
>> disp(a)
参考:https://blog.csdn.net/m0_38037810/article/details/78674287