How to sum up a column in Matlab?

3 visualizzazioni (ultimi 30 giorni)
ONG ZHI SAN
ONG ZHI SAN il 7 Apr 2021
Commentato: KSSV il 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?

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Tables in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by