

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


%Them thoi gian do t = input('Nhap t= '); %Xac lap thong so cua do thi ham so xt A = input('Nhap bien do A= '); f1 = input('Nhap tan so f1= '); alpha = input('Nhap pha alpha= '); x = Acos(2pif1t+alpha); %Xac lap thong so cua do thi ham so yt B = input('Nhap bien do B= '); f2 = input('Nhap tan so f2= '); beta = input('Nhap pha ban beta= '); y=Bcos(2pif2t+beta); disp(['Ve osiloscope ']); plot(x,y,'black','linewidth',2); xlabel('x'); ylabel('y'); title('Do thi Osiloscope'); grid on; Nhap t= [0:0.0002:4] Nhap bien do A= 2 Nhap tan so f1= 40 Nhap pha alpha= pi/ Nhap bien do B= 3 Nhap tan so f2= 80 Nhap pha ban beta= pi/ Ve osiloscope