Calculate the summation of second column in both arrays

2 vues (au cours des 30 derniers jours)
Rozh
Rozh le 8 Juin 2024
Modifié(e) : Torsten le 8 Juin 2024
hi...can someone help me with this question?? i need to calculate the summation of second column in both arrays...thank u

Réponse acceptée

Torsten
Torsten le 8 Juin 2024
Modifié(e) : Torsten le 8 Juin 2024
array = [2 5;7 -4];
sum(array(:,2))
ans = 1

Plus de réponses (0)

Catégories

En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by