How to make equation in matlab algorithm?

1 Ansicht (letzte 30 Tage)
Afiqah Abu Samah
Afiqah Abu Samah am 23 Mär. 2017
Kommentiert: Afiqah Abu Samah am 23 Mär. 2017
How do I transform this equation into matlab algoritm?
eqn: where M and N are the dimensions of the image, and X is the intensity of the pixel located at row i and column j in the image map.

Antworten (1)

Jan
Jan am 23 Mär. 2017
E = sum(X(:)) / numel(X);
or
E = mean(X(:))
  1 Kommentar
Afiqah Abu Samah
Afiqah Abu Samah am 23 Mär. 2017
Thanks for answering my ques. the above equation is for wavelet energy. Why can't I get the same answer when I used wenergy2 function and when I used the code you wrote above?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Mathematics and Optimization finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by