Rowan-Classes/6th-Semester-Spring-2024/DSP/Labs/Lab-01/lab1q1.m
2024-02-22 14:22:36 -05:00

11 lines
150 B
Matlab

fs = 100;
t = [0:1/fs:1/fs * 10];
f1 = 80;
f2 = 20;
x1 = cos(2*pi*f1*t);
x2 = cos(2*pi*f2*t);
subplot(2,1,1);
plot(t,x1);
subplot(2,1,2);
plot(t,x2);