How can I compute the mean of a cell matrix with different size ?
2 ビュー (過去 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!