I Need the matlab code for the attach equation.
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
Actually I need a single value from this equation where sub_band (p,q) is a matrix.
回答(2 个)
Jan
2017-10-20
A = mean(sub_band(:) .^ 2);
2 个评论
tania manna
2017-10-20
Jan
2017-10-21
The first is a scalar already, so the second mean() has no effect.
Torsten
2017-10-20
[p q] = size(sub_band);
A = sum(diag(sub_band.'*sub_band))/(p*q);
Best wishes
Torsten.
0 个评论
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!