A for loop implementation... given matrix A=299x10, calculate the autocorrelation for every row of Matrix A one at a time
Show older comments
Hi, given that size(A)= 299x10, I need to put the following code into a for loop, to avoid writing the 299 lines ....
if true
%
row1=A(1,:)
R1=xcorr(row1)
row2=A(2,:)
R2=xcorr(row2)
.
.
.
row299=A(299,:)
R299=xcorr(row299)
end
Once a new variable B is created(every row in B should have the autocorrelation of the corresponding row in A)
Then I need to calculate the Toeplitz of B toeplitz(B)
Thank you!!
1 Comment
Guillaume
on 9 Dec 2015
Please do not post the same question twice. Amend or comment your original question if you don't receive satisfying answers.
Accepted Answer
More Answers (0)
Categories
Find more on Correlation and Convolution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!