Calculate the summation of second column in both arrays

조회 수: 1 (최근 30일)
Rozh
Rozh 2024년 6월 8일
편집: Torsten 2024년 6월 8일
hi...can someone help me with this question?? i need to calculate the summation of second column in both arrays...thank u

채택된 답변

Torsten
Torsten 2024년 6월 8일
편집: Torsten 2024년 6월 8일
array = [2 5;7 -4];
sum(array(:,2))
ans = 1

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by