Calculate the summation of second column in both arrays

2 visualizzazioni (ultimi 30 giorni)
hi...can someone help me with this question?? i need to calculate the summation of second column in both arrays...thank u

Risposta accettata

Torsten
Torsten il 8 Giu 2024
Modificato: Torsten il 8 Giu 2024
array = [2 5;7 -4];
sum(array(:,2))
ans = 1

Più risposte (0)

Categorie

Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by