0

Weiner kinchin relation code

Respected Sir/Madam I am developing code for weiner kinchin relation. I have hit a road block when the auto/cross correlation of a sequence would result in output length being almost double. How do I get over this problem. Your help will be priceless. Yours sincerely T.V.Chandra Shekar

Scilab

0

Upto my understating the following code will help you

h = rand(1,100); data = xcorr(h); plot2d3(data) maxData = max(data); [i,j] = find(data == maxData) data = data(j:$); figure;clf();plot2d3(data)

Please elaborate you problem if above solution is not working.

I will post the code for you. So that you could get to the crux of the problem I am facing. Here the length of the 'scorr' variable would be twice of the original length of initial sequence chosen. Your help will be priceless. I have chosen known periodic signal because it would help visualize better.

Yours sincerely

T.V.Chandra Shekar

08-11-17, 9:07 p.m.chandrashekar08-11-17, 9:25 p.m.ashutumhoI have tried your piece of code. Most of it has worked great for me. I have new problem new. When I plot the power spectrum taking the fft of auto-correlation the two graphs coincide well at frequency, but when it comes to magnitude of power there is a huge difference. Please help in this regard. I am posting the code so that you could make the necessary changes . Your help will be priceless.

yours sincerely

T.V.Chandra Shekar

09-11-17, 8:49 p.m.chandrashekar12-11-17, 2:58 p.m.ashutumho12-11-17, 3:09 p.m.chandrashekar12-11-17, 4:30 p.m.ashutumho12-11-17, 9:07 p.m.chandrashekarLogin to add comment