MATLAB Lecture 8 School of Mathematical Sciences Xiamen Univer http:/gdjpkc.xmu.edu.cn File dit yiew Insert Tools Desktop Indos Help →日舀回长日国口 >a=16;149162536] ploa);% plot six lines(1,1)(2,4),(3,9);(4,16),(5,25);(6,36) Eile Edit Vie Insert Tools Desktop Window Help D日每令骨回日国回 Plot sin x over [0, 2T ]with title and grid >>t=0:pi/100:2°pi plot(t,y) > title( Plot of sinx vs x) %titled Plot of sinx vs x >xlabel('x #a'); ylabel('sinx) %adds text beside the X-axis Y-axis on the current axis grid onMATLAB Lecture 8 School of Mathematical Sciences Xiamen University http://gdjpkc.xmu.edu.cn Lec83 >> a =[1:6; 1 4 9 16 25 36]; >> plot(a); %plot six lines (1, 1); (2, 4); (3, 9); (4, 16); (5, 25); (6, 36) Plotsin x over [0, 2p ] with title and grid. >> t = 0:pi/100:2*pi; >> y = sin(t); >> plot(t,y) >> title (‘Plot of sinx vs x’) %titled ‘Plot of sinx vs x’ >> xlabel(‘x 轴’); ylabel(‘sinx’) % adds text beside the Xaxis & Yaxis … on the current axis >> grid on