how can I use mean for cell arrays within cell
古いコメントを表示
Dear users,
I want to calculate the annual average of the attached file from the data in the cell array, regardless of the NaNs values.
Thanks in advance,
回答 (1 件)
Bhaskar R
2020 年 2 月 25 日
result = cellfun(@(x)mean(x, 'omitnan'), [T_mon{:}])
カテゴリ
ヘルプ センター および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!