查看单个帖子
旧 2008-05-28, 15:04   #1
green0921
初级会员
 
注册日期: 2008-03-28
年龄: 42
帖子: 12
声望力: 18
green0921 正向着好的方向发展
默认 [求助]大家帮我看一下啊,谢谢

figure(1)
ax1=axes('position',[0.1 0.1 0.8 0.8],'xcolor','r','ycolor','r');
ax2=axes('position',get(ax1,'position'),'XAxisLocation','top','yaxislocation','right','color','none');
axes(ax1);
t=0i/4:2*pi;
h1=plot(t,sin(t),':r');
box off;
axes(ax2);
h2=plot(t,3+t,'-k');
box off;

这段程序有什么问题啊,我是想得到两个坐标轴在一起的图,谢谢啊!
green0921 当前离线   回复时引用此帖