function E = energy (X) E = sqrt(sum(X.*X)); end