Signal Processing Cross Correlation
显示 更早的评论
Greetings, I am new to signal processing. Would like a help to understand these codes I came across in file exchange. These codes were said to estimate spot spacing through image mean intensity projection.
yProfile = mean(a); ac = xcov(yProfile); %cross correlation p1 = diff(ac([1 1:end])); p2 = diff(ac([1:end end]));
I have read doc and help xcov but without sample/demo/tutorial I couldn't understand. Pls could someone explain it in simpler form and perhaps some exercise? And also what does [1 1:end] and [1: end end] means?
Thanks in advance guys :)
3 个评论
Greg Heath
2012-7-12
To avoid confusion, use round parentheses instead of square brackets to denote matrix indices
(1 1:end) means row 1, all columns
(1:end 1) means all rows, column 1
Greg Heath
2012-7-12
xcov is cross covariance, not cross correlation
xcorr is cross correlation
Check a statistics manual, text or wikipedia for the differences between
1. covariance and correlation
2. cross-covariance and cross-correlation
Bella Sam
2013-1-7
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Correlation and Convolution 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!