輸出數組類型的數據,也可以把string類型的數據看做數組輸出
- 輸出數字
>> num = 1; >> disp(num) 1
- 輸出字符串
>> disp('this is string') this is string
>>
- 輸出數字和字符串
>> num = 1; >> disp(['num:',num2str(num)]) num:1
- 輸出數組
>> a=[1 2 3]; >> disp(a) 1 2 3
參考:https://blog.csdn.net/m0_38037810/article/details/78674287
