1、绘图:plot /semilogy /loglog /scatter
figure(1);
subplot(1,2,1);%子图
axis([0 10 10^-5 10^-1]);%限制作图范围,x轴0~10,y轴10^-5到10^-1
plot(X,Y,'Color',[R G B],'LineStyle','-','Marker','o','LineWidth',1);
hold on;
grid on;%显示网格
(1)color
(2)LineStyle
(3)Maker
参考(2条消息) MATLAB:plot函数详解_matlab plot_孙 悟 空的博客-CSDN博客
2、添加标签:xlabel /legend /title /latex格式 /gca
(1)希腊字母、特殊字符包括在标签中
ylabel('Performance metric $${\eta}$$','interpreter','latex');legend({'图例1','图例2'});title('标题内容','Fontsize',16);
参考:
(2条消息) matlab latex格式相关操作与坐标修饰_matlab坐标latex_Sunshing15的博客-CSDN博客https://blog.csdn.net/weixin_52721512/article/details/124358685?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522168380621516782427435720%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=168380621516782427435720&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_ecpm_v1~rank_v31_ecpm-6-124358685-null-null.142%5Ev87%5Einsert_down28,239%5Ev2%5Einsert_chatgpt&utm_term=matlab%E8%AE%BE%E7%BD%AEx%E8%BD%B4%E5%88%BB%E5%BA%A6%E6%A0%87%E7%AD%BE%E6%B1%89%E5%AD%97%E5%8A%A0%E5%AD%97%E6%AF%8D&spm=1018.2226.3001.4187
(2条消息) MATLAB画图中图形对象、文字标注、希腊字母显示等_matlab形状用什么字母_XQiang12345的博客-CSDN博客https://blog.csdn.net/XQiang12345/article/details/80031055?ops_request_misc=&request_id=&biz_id=102&utm_term=matlab%E8%AE%BE%E7%BD%AEx%E8%BD%B4%E5%88%BB%E5%BA%A6%E6%A0%87%E7%AD%BE%E6%B1%89%E5%AD%97%E5%8A%A0%E5%AD%97%E6%AF%8D&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-2-80031055.142%5Ev87%5Einsert_down28,239%5Ev2%5Einsert_chatgpt&spm=1018.2226.3001.4187
(2)更改 x 轴标签字体大小、字体粗细和文本颜色属性。
xlabel('标签内容','FontSize',12,'FontWeight','bold','Color','r');