how to implement this equation
조회 수: 20 (최근 30일)
이전 댓글 표시
I have a equation,kindly tell how to implement this equation
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File 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!