フィルターのクリア

average of multiple 1x2545 singles present in the same cell

1 回表示 (過去 30 日間)
Sag
Sag 2016 年 1 月 27 日
回答済み: Walter Roberson 2016 年 1 月 27 日
How to get mean of corresponding values in 2 (or more than 2 as number varies) 1x2545 singles which are present in same cell (1xNcell)?
  2 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 1 月 27 日
編集済み: Azzi Abdelmalek 2016 年 1 月 27 日
This is not clear. You can illustrate with a small example
Sag
Sag 2016 年 1 月 27 日
I have a cell named A (1x2 cell) It has two singles in it(each 1x2545).
I want to take mean of values corresponding to the same position in the vectors and make a new vector with those mean values in it.
e.g. in cell A, (1 2 3 4 5 6 23 3 1 3 3) & (2 2 1 3 4 2 12 3 4 5 6) these are row vectors now I want to take average of values corresponding to same position in both vectors, and make a new vector J
so J=(1.5 2 2 3.5 4.5 4 17.5 3 2.5 4 4.5)
Thanks

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

採用された回答

Walter Roberson
Walter Roberson 2016 年 1 月 27 日
mean( vertcat(YourCell{:}) )

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by