From: Em M on
Hi all,
I need normalize and the correlation to matrix, and I use the function 'normxcorr2' of Matlab.
But now, I can't use this function and I need to know if exist others functions that do the same.
I have tried, first I have normalized with the equation:

aP = sqrt(diag(p'*p));
PNormalized=p./(ones(size(p,1),1)*aP');

And then, I have done the correlation with the function 'xcorr2', c=xcorr2(PNormalized,B);

But the result is not the same when I use the function 'normxcorr2'.
I need help, please.

Thank you.
From: Maitha on
"Em M" <lme1987(a)hotmail.com> wrote in message <i1o3s9$85b$1(a)fred.mathworks.com>...
> Hi all,
> I need normalize and the correlation to matrix, and I use the function 'normxcorr2' of Matlab.
> But now, I can't use this function and I need to know if exist others functions that do the same.
> I have tried, first I have normalized with the equation:
>
> aP = sqrt(diag(p'*p));
> PNormalized=p./(ones(size(p,1),1)*aP');
>
> And then, I have done the correlation with the function 'xcorr2', c=xcorr2(PNormalized,B);
>
> But the result is not the same when I use the function 'normxcorr2'.
> I need help, please.
>
> Thank you.

You can normaliz data between [-1, 1] by using mapstd function

For normalizing between [0,1], please look at the link below:
http://www.mofeel.net/582-comp-soft-sys-matlab/98206.aspx

Regards,
Maitha