i need this equation matlab code any body help me.
1 回表示 (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168938/image.png)
0 件のコメント
回答 (1 件)
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
2018 年 1 月 15 日
and
gBar = mean(g(:)) % Compute mean over all values in the 2-D matrix.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!