Calculate the summation of second column in both arrays

1 view (last 30 days)
hi...can someone help me with this question?? i need to calculate the summation of second column in both arrays...thank u

Accepted Answer

Torsten
Torsten on 8 Jun 2024
Edited: Torsten on 8 Jun 2024
array = [2 5;7 -4];
sum(array(:,2))
ans = 1

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!