Rowan-Classes/5th-Semester-Fall-2023/Signals-and-Systems/Labs/Lab-01/Lab-01-1.m
2024-02-22 14:23:12 -05:00

14 lines
205 B
Matlab

clear all;
clf;
t = -10:0.01:10;
y1 = cos(pi*t);
y2 = cos(2*pi*t/3);
y = y1 + y2;
plot(t,y, "linewidth",3);
title('Combining Cosines');
xlabel('time (seconds)');
ylabel('y(t)');
axis([-10 10 -3 3]);
grid