I Need the matlab code for the attach equation.
Info
This question is closed. Reopen it to edit or answer.
Show older comments
Answers (2)
Jan
on 20 Oct 2017
A = mean(sub_band(:) .^ 2);
2 Comments
tania manna
on 20 Oct 2017
Jan
on 21 Oct 2017
The first is a scalar already, so the second mean() has no effect.
Torsten
on 20 Oct 2017
[p q] = size(sub_band);
A = sum(diag(sub_band.'*sub_band))/(p*q);
Best wishes
Torsten.
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!