sum a column in a matrix

2 views (last 30 days)
Berfin Çetinkaya
Berfin Çetinkaya on 13 May 2022
Commented: Berfin Çetinkaya on 15 May 2022
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?

Accepted Answer

Stephen23
Stephen23 on 13 May 2022
F = @(t) sum(t{:,7});
V = cellfun(F,Tables)
  3 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on Linear Algebra in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!