Скачиваний:
3
Добавлен:
30.09.2022
Размер:
584 б
Скачать
clc;
clear all;
F=26;
A=25;
tmax=0.2;
Fs1=400;
Fs2=90;
T1=1/Fs1;
t1=(0:T1:tmax);
T2=1/Fs2;
t2=(0:T2:tmax);
Y1=A*cos(2*pi*F*t1);

figure
subplot(3,1,1)
plot(t1,Y1)
title('F = 26 Гц')

hold on
Y2=A*cos(2*pi*F*t2);
subplot(3,1,1)
plot(t2,Y2,'r')

Y3=A*cos(2*pi*(Fs2+F)*t1);
subplot(3,1,2)
plot(t1,Y3)
title('Fs2 + F = 116 Гц')

hold on
Y4=A*cos(2*pi*(Fs2+F)*t2);
subplot(3,1,2)
plot(t2,Y4,'g')

Y5=A*cos(2*pi*(Fs2-F)*t1);
subplot(3,1,3)
plot(t1,Y5)
title('Fs2 - F = 64 Гц')

hold on
Y6=A*cos(2*pi*(Fs2-F)*t2);
subplot(3,1,3)
plot(t2,Y6,'b')
Соседние файлы в папке Ч2. Иссоедование эффекта наложения