matlab图形标注名称_Matlab绘图例程——简单绘图与标注

题目与最终结果如下:53f95bf4b793566102ef65ca60972b44.png题目

276fa7990ed1a8d14f4930ec3575df68.png结果

figure('name','曲线图示例')

subplot(1,2,1)

t=-1:0.1:2;

y=(1+t.^2)./(1+t.^4); %数组使用点除

hold on

plot(t,y,'--r')

axis([-1 2 1 2.25])

grid on

title('第一个曲线的标题')

legend({'曲线1'})

xlabel('x轴')

ylabel('y轴')

text(-0.9,1.15,'$$a > b > 0,c > d > 0 \Rightarrow ac bd$$','Interpreter','latex')

subplot(1,2,2)

x1=-3:0.01:0;

x2=0:0.01:pi;

x3=pi:0.01:5;

y1=2*x1;

y2=x2.*cos(2*x2);

y3=(x3-pi).^2;

hold on

plot(x1,y1,'-','LineWidth',1)

plot(x2,y2,'--','LineWidth',1)

plot(x3,y3,':k','LineWidth',1)

legend({'2x x \leq0','xcos2x 0

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值