Matlab Correlation Function

Posted by Joka on Stack Overflow See other posts from Stack Overflow or by Joka
Published on 2011-02-07T15:18:46Z Indexed on 2011/02/07 15:25 UTC
Read the original article Hit count: 190

Filed under:
|
function letter=read_char(imgn, num_letters)

global templates

comp=[ ];

for n=1:num_letters

    sem=corr2(imgn, templates{1,n});

    comp=[comp sem];

end

vd=find(comp==max(comp));

Can someon please explain what the 'FOR' loop does and how 'vd' is calculated? Also, what is the variable 'comp' and what will it looks like as the array also contains itself and another variable 'sem' which is calculated from the corr2 function. thanks

© Stack Overflow or respective owner

Related posts about matlab

Related posts about correlation