Review 2-D plot.ppt

Review 2-D plot.ppt

Review 2-D plot Clear all X=linspace(0,100,40) X=0:0.25:100 Y=sin(x) Plot(x,y,’CLM’) + - * / ^ default Matrix .+ .- .* ./ .^ elememt to element + plus + uplus numeric array - minus - minus sign * mtimes Matrix multiplication .* times array multiplication ^ mpower Matrix power .^ power array power / mldivide Matrix division ./ ldivide array division 今天要會: Plot(x,y1,’CLM’,x,y2,’CLM’) axis([xmin, xmax, ymin, ymax]) subplot(2, 2, 4); plot(x, y); axis equal tight xlabel(‘x軸標注); ylabel(‘y軸標注) title(‘圖名); legend(‘y1,‘y2); 3-3 圖軸的控制 plot 指令會根據座標點自動決定圖軸範圍 也可以使用 axi

文档评论(0)

1亿VIP精品文档

相关文档