|
|
| compute_correlation(d, allLineList);
|
%-------------------------------------------------------
% Filename: compute_and_plot_correlation.m
% Author: C Jethro Lam, jethrolam@gmail.com
% Date: 4/4/2009
%
% Purpose: Compute and plot the correlation matrix
%
%-------------------------------------------------------
function clam_corr_matrix = compute_correlation(d, allLineList);
num_entries = size(d, 1);
% Compute signature for each entry
for n = 1:num_entries
[tmp d(n).clam_sig] = compute_clam_sig(d, allLineList, n);
end
% Compute correlation matrix
clam_corr_matrix = zeros(num_entries, num_entries);
for m = 1:num_entries
for n = 1:num_entries
clam_corr_matrix(m,n) = max(conv(d(m).clam_sig, flipud(d(n).clam_sig)));
end
end
|
|
Contact us at files@mathworks.com