Đề Tài : VẼ ĐỒ THỊ ÁP 3 PHA HÌNH SIN TRÊN CÙNG MỘT CỬA SỔ VỚI 3 ĐỒ THỊ NHỎ
>> 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)
Trang 2h1 =
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')
Trang 3>> 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
>>