How to sum up a column in Matlab?

3 Ansichten (letzte 30 Tage)
ONG ZHI SAN
ONG ZHI SAN am 7 Apr. 2021
Kommentiert: KSSV am 7 Apr. 2021
I have created a table as attached in Matlab. How do I create a new row which shows the total of Moles?

Akzeptierte Antwort

KSSV
KSSV am 7 Apr. 2021
iwant = sum(T.(4))
  2 Kommentare
ONG ZHI SAN
ONG ZHI SAN am 7 Apr. 2021
is it possible to add the answer in the table?
KSSV
KSSV am 7 Apr. 2021
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by