How to sum up a column in Matlab?

5 visualizaciones (últimos 30 días)
ONG ZHI SAN
ONG ZHI SAN el 7 de Abr. de 2021
Comentada: KSSV el 7 de Abr. de 2021
I have created a table as attached in Matlab. How do I create a new row which shows the total of Moles?

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by