i need this equation matlab code any body help me.

1 vue (au cours des 30 derniers jours)
Wajahat Nawaz
Wajahat Nawaz le 15 Jan 2018
Commenté : Image Analyst le 15 Jan 2018

Réponses (1)

Jan
Jan le 15 Jan 2018
Modifié(e) : Jan le 15 Jan 2018
gbar = sum(g(:)) / (M * N);
sigma2 = sum((g(:) - gbar) .^ 2) / (M * N - 1);
Looks straight forward. But what about:
sigma2 = var(g(:))
  1 commentaire
Image Analyst
Image Analyst le 15 Jan 2018
and
gBar = mean(g(:)) % Compute mean over all values in the 2-D matrix.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Simulation, Tuning, and Visualization dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by