Code: clear; clc; x = 0:pi/100:2*pi; y = sin(x); y2 = sin(x-.25); y3 = sin(x-.5); subplot(2,2,1);plot(y,'b'); subplot(2,2,2);plot(y2,'r'); subplot(2,2,3);plot(y2,'g'); subplot(2,2,4);plot(x,y,x,y2,x,y3); Output:
Leave a Comment