0% found this document useful (0 votes)
6 views1 page

Unique Signals in Cosine Graphs

The document contains Matlab code that generates cosine signals with different frequencies and plots them in four subplots, showing that only the second signal is unique as cosine is a periodic function.

Uploaded by

Youssef Yousry
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Unique Signals in Cosine Graphs

The document contains Matlab code that generates cosine signals with different frequencies and plots them in four subplots, showing that only the second signal is unique as cosine is a periodic function.

Uploaded by

Youssef Yousry
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Matlab code:

k=[0:9];
x_1= cos(2/5*pi*k);
x_2= cos(4/5*pi*k);
x_4= cos(8/5*pi*k);
x_6= cos(12/5*pi*k);
subplot(2,2,1);stem(k,x_1);
subplot(2,2,2);stem(k,x_2);
subplot(2,2,3);stem(k,x_4);
subplot(2,2,4);stem(k,x_6);

Screenshot of the graphs:

Notes on graphs:
As we notice from the four graphs, there is only one unique signal, which is the second
one(X_2). This is because the cosine function is a periodic function with a fundamental
period of 2π. The first, the third and the fourth graph are all equal to each other.

You might also like