how to implement this equation

조회 수: 20 (최근 30일)
nkumar
nkumar 2013년 3월 15일
I have a equation,kindly tell how to implement this equation

채택된 답변

Youssef  Khmou
Youssef Khmou 2013년 3월 15일
편집: Youssef Khmou 2013년 3월 15일
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,

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by