matlab图形保存及图例的设置与函数.docVIP

  • 5
  • 0
  • 约3.1千字
  • 约 6页
  • 2017-06-03 发布于湖北
  • 举报
图形的保存的步骤:figure——edit——copy figure 例1:x=[0,0.48,0.84,1,0.91,0.6,0.14]; subplot(2,2,1) plot(x) hold on subplot(2,2,2) plot(x,*) subplot(2,2,3) plot(x,-b*) subplot(2,2,4) plot(x,-k*) x=0:0.01:2*pi; y1=sin(x); y2=cos(x); plot(x,y1,b,x,y2,r) legend(正弦曲线,余弦曲线) title(正弦与余弦曲线) xlabel(x) ylabel(y) x=-5:5 x = Columns 1 through 9 -5 -4 -3 -2 -1 0 1 2 3 Columns 10 through 11 4 5 y=x y = Columns 1 through 9 -5 -4 -3 -2 -1 0 1 2 3 Columns 10 through 11 4 5 [X,Y]=meshgrid(x,y) X = Columns

文档评论(0)

1亿VIP精品文档

相关文档