unable to calculate autocorrelation with a for loop by using xcorr
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
toka55
am 14 Nov. 2017
Beantwortet: toka55
am 14 Nov. 2017
I try to calculate the autocorrelation of a signal by using xcorr in this loop:
autc = nan(size(dec.cd{1, 1}));
for k=1:size(dec.cd{1, 1},2)
[rmm, lags] =xcorr(dec.cd{1, 1}(:,k));
rmm = rmm(lags>0);
autc(:,k) = rmm;
end;
I get the error: Subscripted assignment dimension mismatch.
Any idea were the mismatch is?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!