Matlab 的 disp函数
2017-04-11 20:34
267 查看
1. 输出字符串:
2. 输出数字:
3.同时输出字符串和数字:
当参数要传入多个数字或字符串时,要用 [] 括起来!
>>disp('my test') my test
2. 输出数字:
>> test=3; >> disp(test) 3
3.同时输出字符串和数字:
>> test=3; >> disp(['my test=',num2str(test)]) my test=3
当参数要传入多个数字或字符串时,要用 [] 括起来!
相关文章推荐
- MATLAB ——输出函数及导出数据(dispfprintf,dlmwrite,xlswrite
- Matlab基本函数-disp函数
- Matlab之print,fprint,fscanf,disp函数
- matlab中disp函数的使用
- MATLAB 控制台显示(不用disp函数进行显示)
- paper 66: MATLAB函数—disp的使用
- Matlab之print,fprint,fscanf,disp函数
- Matlab之print,fprint,fscanf,disp函数
- Matlab之print,fprint,fscanf,disp函数
- Matlab之print,fprint,fscanf,disp函数
- Matlab之print,fprint,fscanf,disp函数
- matlab中disp函数的简单用法
- MATLAB 输出函数及导出数据(dispfprintf,dlmwrite,xlswrite)
- Matlab之print,fprint,fscanf,disp函数
- Matlab的disp()函数
- Matlab之print-fprint-fscanf-disp函数的用法
- Matlab主要函数使用方法!
- matlab 特殊函数/特殊变量和常量
- MATLAB程序设计教程(7)——MATLAB解方程与函数极值
- 由滤波器系数绘制尺度函数和小波函数图像的Matlab程序