How to sum up a column in Matlab?

6 次查看(过去 30 天)
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 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by