i need this equation matlab code any body help me.

1 Ansicht (letzte 30 Tage)
Wajahat Nawaz
Wajahat Nawaz am 15 Jan. 2018
Kommentiert: Image Analyst am 15 Jan. 2018

Antworten (1)

Jan
Jan am 15 Jan. 2018
Bearbeitet: Jan am 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(:))

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by