DSPRelated.com
Forums

Re: Periodic Random bit with period n=15

Started by Vipperla Ravi Chander N Rao September 30, 2003
Hi,
Giving a linear shift to periodic sequence is equivalent to giving the
sequence in one period a circular shift (circshift Note:This will work
on columns of a matrix, so make necessary transposes as required).

Let the original matrix be called 'a' and the shifted one 'b'.
c = xor(a,b) will give 1 in c whereever there is a match.
sum(c) will give you total number of matches.
I guess you can proceed from here.

Regards,
Ravi
Hi everybody,
I just start to study something about Matlab.
My question is:
If I have a periodic random bit with period N = 15 is given as
x(k)= [0 0 0 1 0 0 1 1 0 1 0 1 1 1 1]. Find the correlation sequence
by using the following equation, and plot it
R(m) = (No. of agrrements - No of disagreement in one cycle with a m
position shift)/N.
Please suggest me what I should do to get the result. Thank you.
T Nguyen