How to averaging each each row in cell array?
1 次查看(过去 30 天)
显示 更早的评论
Hi, Community...
I just want to ask, how to averaging each of my cell array according to the row?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1050640/image.png)
i want to average dst_allfiles{1}(1), dst_allfiles{2}(1), dst_allfiles{3}(1)
then
mean(dst_allfiles{1}(2), dst_allfiles{2}(2), dst_allfiles{3}(2))
mean(dst_allfiles{1}(3), dst_allfiles{2}(3), dst_allfiles{3}(3))
............................
How to do that? Thank you....
0 个评论
采纳的回答
David Hill
2022-6-30
d=cell2mat(dst_allfiles);
m=mean(d,2);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!