%创建axes坐标图 h = axes(); %定义图形位置和大小,[left bottom width height] %set(h,'Position',[0.1 0.1 0.8 0.8]); %画图 x=0:0.01:12; y=sin(x); plot(h,sin(x)); %Sets the location of the tick marks along the axis set(h,'XTickLabel',[0;2;4;6;8;10;12;14]); %显示方格 set(h,'XGrid','on','YGrid','on'); %设置颜色、字体等属性 set(h,'XColor',[0 0 0.7],...        'YColor',[0 0 0.7],...        'ZColor',[0 0 0.7],...        'Color',[.9 .9 .9],...        'GridLineStyle','--',...        'ZTickLabel','-1|Z = 0 Plane|+1',...        'FontName','times',...        'FontAngle','italic',...        'FontSize',14); %定义X坐标和Y坐标的标签名 set(get(h,'XLabel'),'String','Values of X',...                     'FontName','times',...                     'FontAngle','italic',...                     'FontSize',14); set(get(h,'YLabel'),'String','Values of Y',...                     'FontName','times',...                     'FontAngle','italic',...                     'FontSize',14) %定义图形标题名                 set(get(h,'Title'),'String','/fontname{times}/ity=sin(x)',...                     'FontName','times',...                     'Color',[0 0 0.7],...                     'FontSize',14);

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐