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 日

2 投票

mean(cat(3, TheCellArray{:}),3)

1 件のコメント

Anampally  Mahesh
Anampally Mahesh 2024 年 2 月 5 日
Thank you so much, Walter.
It works very nicely :)

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by