How to sum up a column in Matlab?

조회 수: 3 (최근 30일)
ONG ZHI SAN
ONG ZHI SAN 2021년 4월 7일
댓글: KSSV 2021년 4월 7일
I have created a table as attached in Matlab. How do I create a new row which shows the total of Moles?

채택된 답변

KSSV
KSSV 2021년 4월 7일
iwant = sum(T.(4))
  댓글 수: 2
ONG ZHI SAN
ONG ZHI SAN 2021년 4월 7일
is it possible to add the answer in the table?
KSSV
KSSV 2021년 4월 7일
You see sum is going to be a single number and your table height (number of rows) is more, it looks wierd to add a single number to the table.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by