sum a column in a matrix

4 ビュー (過去 30 日間)
Berfin Çetinkaya
Berfin Çetinkaya 2022 年 5 月 13 日
コメント済み: Berfin Çetinkaya 2022 年 5 月 15 日
Hi guys
I have 20 matrices like in my photo. I want to sum the 7th column of each matrix. Then how can I print the values of the 20 matrices that I have collected for the 7th columns in a single column one after the other?

採用された回答

Stephen23
Stephen23 2022 年 5 月 13 日
F = @(t) sum(t{:,7});
V = cellfun(F,Tables)
  3 件のコメント
Stephen23
Stephen23 2022 年 5 月 14 日
"Can we convert it to a single column?"
V = V(:)
Berfin Çetinkaya
Berfin Çetinkaya 2022 年 5 月 15 日
Thank you !

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by