How can I compute the mean of a cell matrix with different size ?
1 次查看(过去 30 天)
显示 更早的评论
Hi everybody. I have a matrix array (2dimensional) and I would like to compute the mean of each coulumn.
R{i,j}=cell array with 186*157 size. i=1:186,j=1:157.
1 个评论
Jan
2022-4-29
What is the contents of the cell elements? Do you want to get the mean value of the elements, or between the elements?
采纳的回答
Star Strider
2022-4-29
Try something like this —
R = {rand(10,8)}
Rmeanc = cellfun(@mean,R, 'Unif',0)
Rmeanv = Rmeanc{:}
.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!