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 Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by