在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 2296|回复: 4

legend多行标记-MALTAB

[复制链接]
发表于 2016-6-28 12:34:19 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
legends={'V_G_S=-3','V_G_S=-2','V_G_S=-1','V_G_S=0','V_G_S=1','V_G_S=2','V_G_S=3'};
tx=[0.5  0.5  1.5 1.5  2.5  2.5  3.5];
ty=[0.5 0.2  0.5 0.2 0.5 0.2 0.5]*1e-27;
for i=1:7
    text(tx(i),ty(i),legends{i});
end
hold on
xlabel('V_D_S(Voltage)');
ylabel({'Induced gate Noise,id^2(1e^-^2^2) Amp^2/Hz)'})                             
x=[[0.5  0.5  1.5 1.5  2.5  2.5  3.5]-0.4;[0.5  0.5  1.5 1.5  2.5  2.5  3.5]-0.1];
y=[[0.5 0.2  0.5 0.2 0.5 0.2 0.5]*1e-27;[0.5 0.2  0.5 0.2 0.5 0.2 0.5]*1e-27];
hold on
h3=plot(x,y);
set(h3(1),'LineStyle','-','LineWidth',1,'Color','b')
set(h3(2),'LineStyle','-','LineWidth',1,'Color','m')
set(h3(3),'LineStyle','-','LineWidth',1,'Color','r')
set(h3(4),'LineStyle','-','LineWidth',1,'Color','c')
set(h3(5),'LineStyle','-','LineWidth',1,'Color','k')
set(h3(6),'LineStyle','-','LineWidth',1,'Color','g')
set(h3(7),'LineStyle','-','LineWidth',1,'Color','g')
 楼主| 发表于 2016-6-29 08:45:40 | 显示全部楼层
发表于 2016-6-30 23:58:32 | 显示全部楼层
666666
 楼主| 发表于 2017-5-18 08:14:54 | 显示全部楼层
a=linspace(0,2*pi,100);
y1=100*sin(a);
y2=50*cos(a);
y3=tan(a);
y4=log(a);
y=[y1;y2;y3;y4];
figure
p=plot(a,y)

legend(p(1:2),'sin','cos');
ah=axes('position',get(gca,'position'),...
            'visible','off');
legend(ah,p(3:4),'tan','log','location','west');
 楼主| 发表于 2017-5-18 08:15:01 | 显示全部楼层
a=linspace(0,2*pi,100);
y1=100*sin(a);
y2=50*cos(a);
y3=tan(a);
y4=log(a);
y=[y1;y2;y3;y4];
figure
p=plot(a,y)

legend(p(1:2),'sin','cos');
ah=axes('position',get(gca,'position'),...
            'visible','off');
legend(ah,p(3:4),'tan','log','location','west');
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-3-29 14:34 , Processed in 0.021207 second(s), 7 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表