how to implement this equation

1 vue (au cours des 30 derniers jours)
nkumar
nkumar le 15 Mar 2013
I have a equation,kindly tell how to implement this equation

Réponse acceptée

Youssef  Khmou
Youssef Khmou le 15 Mar 2013
Modifié(e) : Youssef Khmou le 15 Mar 2013
hi,
given I and J of size MxN
M=6;N=4;
I=rand(M,N);
J=rand(M,N);
II=I.^2;
JJ=J.^2;
P=I.*J; % its Element wise product !!
numerator=sum(P(:));
denominator= sqrt(sum(II(:))*sum(JJ(:)));
NCC=numerator/denominator;
the result should be : 0<=NCC<=1,

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by