一个画面显示多个图表,使用subplot();
t = 0:0.1:2*pi; x = 3*cos(t); y = sin(t);
subplot(2,2,1);plot(x,y);axis normal--control axis
subplt(2,2,2);plot(x,y);axis square
subplot(2,2,3);plot(x,y);axis equal
subplt(2,2,4);plot(x,y);axis equal tight
去掉表格(current plot):use 'axis off';
显示表格(current plot):use 'grid on;---display and close can use on and off words
>>>>axis off >>
柱形图:Bar charts
>> x = [1 2 5 4 8];
>> y = [x;1:5];--A array