1.输出字符串:
>>disp('my test')
my test
2.输出数字:
>> test=3;
>> disp(test)
3
3.同时输出字符串和数字:
>> test=3;
>> disp(['my test=',num2str(test)])
my test=3
|
1.输出字符串:
>>disp('my test')
my test
2.输出数字:
>> test=3;
>> disp(test)
3
3.同时输出字符串和数字:
>> test=3;
>> disp(['my test=',num2str(test)])
my test=3
|