How to sum up a column in Matlab?

4 ビュー (過去 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 Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by