How to calculate absolute mean across numerical array
Afficher commentaires plus anciens
Hi all,
I have an array of 100x24 double. I want to calculate absolute mean so the output is 100x1 double. Can you help please?
mean_array = mean((abs(P_acc_y, 2)));
gives me
Error using abs
Too many input arguments.
Réponse acceptée
Plus de réponses (1)
Matt J
le 7 Mar 2022
mean_array = vecnorm(P_acc_y, 1, 2)/24;
Catégories
En savoir plus sur Elementary Math dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!