Ñeà Taøi : VEÕ ÑOÀ THÒ AÙP 3 PHA HÌNH SIN TREÂN CUØNG MOÄT CÖÛA SOÅ VÔÙI 3 ÑOÀ THÒ NHOÛ >> x= linspace(0,6*pi,600); % cho x chay tu o den 3pi voi 600 mau >> y1=5*sin(x); >> y2=5*sin(x+2*pi/3); >> y3=5*sin(x-2*pi/3); >> % select window and position plot region within window >> subplot(2,2,1) >> h1=plot(x,y1,'y-o','LineWidth',2,'MarkerSize',5) h1 = 101.0005 >> grid on >> xlabel('Time') >> ylabel('Amplitude') >> legend(h1,'Fist') >> legend(h1,'First') >> title('First phase') >> subplot(2,2,2) >> h2=plot(x,y2,'g-+','LineWidth',2,'MarkerSize',5); >> xlabel('Time') >> ylabel('Amplitude') >> legend(h2,'second') >> title('Second phase') >> subplot(2,2,3) . >> h3= plot(x,y3,'r-*','LineWidth',2,'MarkerSize',5); >> xlabel('Time') >> ylabel('Amplitude') >> legend(h3,'third') >> title('third phase') >> subplot % dua cua so do thi tro lai binh thuong >> ... phase') >> subplot(2,2 ,3) >> h3= plot(x,y3,'r-*','LineWidth',2,'MarkerSize',5); >> xlabel('Time') >> ylabel('Amplitude') >> legend(h3,'third') >> title('third phase') >> subplot % dua cua so... title('First phase') >> subplot(2,2,2) >> h2=plot(x,y2,'g-+','LineWidth',2,'MarkerSize',5); >> xlabel('Time') >> ylabel('Amplitude') >> legend(h2,'second') >> title('Second phase') >> subplot(2,2 ,3)