2014年5月4日星期日
matlab plot
radix=size(upos,1);
%双坐标轴绘制
[AX,H1,H2] = plotyy(x,spos_improved(1:radix,1), x, dis(1:radix,1), 'plot');
set(gca,'fontsize',30)
set(get(AX(1),'Ylabel'),'String','Non-zero position', 'fontsize',30,'fontname','times new roman')
set(get(AX(2),'Ylabel'),'String','Discrepancy between u and upos', 'fontsize',30,'fontname','times new roman')
%设置字体,设置x轴标签
set(AX(2), 'fontsize', 30)
xlabel('Iteration round','FontSize',30)
hold on
%plot(x,upos(1:radix,1),x,vpos(1:radix,1),x,rpos(1:radix,1),x,spos(1:radix,1),x,upos_improved(1:radix,1), 'm*',x,vpos_improved(1:radix,1), 'm*',x,rpos_improved(1:radix,1), 'm*')
%在同一张图上绘制多个曲线
plot(x,upos(1:radix,1),x,vpos(1:radix,1),x,rpos(1:radix,1),x,spos(1:radix,1),x,upos_improved(1:radix,1),x,vpos_improved(1:radix,1),x,rpos_improved(1:radix,1))
ylim([0 5000]) %限定y坐标轴范围
%
%ylabel('Non-zero position','FontSize',16)
%title('Plot of u, v, r, s non-zero position changing, and curve approximation using upos, vpos, rpos, spos')
订阅:
博文评论 (Atom)
没有评论:
发表评论