even and odd samples of sine

Status
Not open for further replies.

ajayreddybireddy

Newbie level 5
Joined
Mar 19, 2008
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,343
hello Professionals

I need some assistance to split even and odd samples of a sinewave, there by each part I have to implement some functions

here is the sinewave in=sin(2*pi*500/8000*(0:63));

for this how to take even and odd samples?

cause for even samples need to implement rad-2 fft and for odd rad-4


please help mee..

I've been trying to get it out but no partials!!!

please... help me..
 

This is a very simple matlab task...
Code:
in_even=sin(2*pi*500/8000*(0:2:63));
in_odd=sin(2*pi*500/8000*(1:2:63));
 

thank you

this code is not suitable for my implementation.

can u give any other alternate way for splitting out input samples into even and odd. It should not based on type of input like sine or some thing else. We can use for splitting any type of data
 

Try use the 'reshape' function:
For Example:
>> a = 1:10;
>> reshape(a,2,5);
>> ans = 1 3 5 7 9
2 4 6 8 10
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…