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?

 Réponse acceptée

Stephen23
Stephen23 le 13 Mai 2022

1 vote

F = @(t) sum(t{:,7});
V = cellfun(F,Tables)

3 commentaires

Berfin Çetinkaya
Berfin Çetinkaya le 13 Mai 2022
Modifié(e) : Berfin Çetinkaya le 13 Mai 2022
Thanks , sum is true . but it showed the collected values in one row. Can we convert it to a single column?
Sorry, my knowledge of matlab is poor. My question may sound simple, but I would be glad if you could help.
"Can we convert it to a single column?"
V = V(:)
Berfin Çetinkaya
Berfin Çetinkaya le 15 Mai 2022
Thank you !

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by