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 Commenti

What have you tried?
The equation provides a single value already. What have you tried so far? What is the specific problem?

Risposte (2)

A = mean(sub_band(:) .^ 2);

2 Commenti

thank you.
A = mean(sub_band(:) .^ 2); or
A = mean(mean(sub_band(:) .^ 2));
The first is a scalar already, so the second mean() has no effect.
[p q] = size(sub_band);
A = sum(diag(sub_band.'*sub_band))/(p*q);
Best wishes
Torsten.

Questa domanda è chiusa.

Richiesto:

il 20 Ott 2017

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

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

Start Hunting!

Translated by