How to calculate absolute mean across numerical array
显示 更早的评论
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.
采纳的回答
更多回答(1 个)
Matt J
2022-3-7
mean_array = vecnorm(P_acc_y, 1, 2)/24;
类别
在 帮助中心 和 File Exchange 中查找有关 Operators and Elementary Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!