matlab plot title 包含变量的图片标题
生活随笔
收集整理的这篇文章主要介绍了
matlab plot title 包含变量的图片标题
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
基本思路是通过字符串拼接,如果有数字,需要通过num2str转换
clear clcx=1:0.01:10; y=sin(x); plot(x,y,'linewidth',3) xlabel('x') ylabel('y') x=1; str='study' title(['x=',num2str(x), ', ', str])总结
以上是生活随笔为你收集整理的matlab plot title 包含变量的图片标题的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: Python tensorflow Mo
- 下一篇: 基于matlab_simulink汽车三