clear all; close all; x=-10:0.1:10; x2=[-5 -sqrt(3) pi]; x3=linspace(-10,10,64); y=sin(x); y2=sin(x2); y3=x3.*sin(x3); figure(1) plot(x,y), hold on plot(x2,y2) plot(x3,y3) figure(2) plot(x,y,x2,y2,'*',x3,y3,'mO:') legend('y','y2','y3',0) xlabel('x axis'), ylabel('y axis') title('stuff') grid on figure(3) subplot(3,1,1), plot(x,y) axis([-10 10 -10 10]) subplot(3,1,2), plot(x2,y2,'*') axis([-10 10 -10 10]) title(['this is the point (' num2str(x2(1)) num2str(y2(1)) ')'] ) subplot(3,1,3), plot(x3,y3,'mO:')