# Hello everyone, I have a matlab problem and I don't know how to go about it.The question goes thus: Using a matlab code prove that for discrete time sinusoids whose frequencies are seperated by an integer multiple of 2*pi are identical. Pleas

3 views (last 30 days)

Show older comments

Hello everyone,

I have a matlab problem and I don't know how to go about it.The question goes thus:

Using a matlab code prove that for discrete time sinusoids whose frequencies are seperated by an integer multiple of 2*pi are identical.

Please help........................................................

##### 0 Comments

### Accepted Answer

Youssef Khmou
on 17 Jul 2013

Edited: Youssef Khmou
on 17 Jul 2013

hi,

I think you mean that two sinusoidal functions whose phases are separated by integer multiple of 2*pi are identical :

Fs=40; % sample rate

f=15; % fundamental frequency

t=0:1/Fs:2-1/Fs;

b=2*pi*2; % phase multiple of 2*pi

y1=sin(2*pi*t*f);

y2=sin(2*pi*t*f+b);

figure, plot(t,y1,t,y2,'r')

rmse=sqrt(mean((y1-y2).^2));

norm(y1-y2);

now change b to another value, you will realize that they are not identical anymore .

##### 0 Comments

### More Answers (2)

Muthu Annamalai
on 16 Jul 2013

Usually forum members don't provide canned homework solutions. You have a better chance to receive help when you show your work.

Having said, that you can learn solution to your problem by reading the help for FFT function at FFT Example section.

##### 0 Comments

Image Analyst
on 16 Jul 2013

##### 2 Comments

Image Analyst
on 17 Jul 2013

### See Also

### Categories

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!