cell array mean clculation
显示 更早的评论
how to calculate the mean for only one dim in cell array :
for example :
this is the cell array sizes :
ps = cell(2,80,2);
i want to calculate the mean according the third dim..
回答(1 个)
Jason Firth
2019-6-13
0 个投票
Can you convert to a matrix?
mean(cell2mat(ps),3)
类别
在 帮助中心 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!