i need this equation matlab code any body help me.

조회 수: 1 (최근 30일)
Wajahat Nawaz
Wajahat Nawaz 2018년 1월 15일
댓글: Image Analyst 2018년 1월 15일

답변 (1개)

Jan
Jan 2018년 1월 15일
편집: Jan 2018년 1월 15일
gbar = sum(g(:)) / (M * N);
sigma2 = sum((g(:) - gbar) .^ 2) / (M * N - 1);
Looks straight forward. But what about:
sigma2 = var(g(:))
  댓글 수: 1
Image Analyst
Image Analyst 2018년 1월 15일
and
gBar = mean(g(:)) % Compute mean over all values in the 2-D matrix.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulation, Tuning, and Visualization에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by