How to find average of each column in every matrix within a cell

1 回表示 (過去 30 日間)
fernando aguirre
fernando aguirre 2018 年 6 月 7 日
コメント済み: fernando aguirre 2018 年 6 月 7 日
I have a 1x20 cell called "transmission" and I would like to find the average of each column (separately) within each matrix in the cell. Each matrix is 12000x20

採用された回答

dpb
dpb 2018 年 6 月 7 日
mn=cellfun(@mean,c,'uniform',0); % c is the cell array
mean operates by column by default.
  1 件のコメント
fernando aguirre
fernando aguirre 2018 年 6 月 7 日
Thank you, didn't realize cellfun was a thing

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by