フィルターのクリア

Mean of a cell array

2 ビュー (過去 30 日間)
Anampally  Mahesh
Anampally Mahesh 2024 年 2 月 4 日
コメント済み: Anampally Mahesh 2024 年 2 月 5 日
I have a 10*1 cell array named Data.mat, that each row of it contains a 30*30 matrix. How to calculate the mean of this cell array and obtain a 30*30 matrix? Thanks in advance for your kind help. Regards, Mahesh.

採用された回答

Walter Roberson
Walter Roberson 2024 年 2 月 5 日
mean(cat(3, TheCellArray{:}),3)
  1 件のコメント
Anampally  Mahesh
Anampally Mahesh 2024 年 2 月 5 日
Thank you so much, Walter.
It works very nicely :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by