Making a 'progressive' plot from a scattered matrix.

Hello, since i dont really know how to ask this question ill ust try to explain it to the best of my abillity.
So i want to plot a graph using a large matrix. This picture added is the plot i made using the data provided. Only thing now is that this data is very scattered. It is supposed to be CO2 emmisions/given time unit. i plotted it against the disctance which the vehicle traveled. I would like to make a line that makes it so that, in stead of taking the individual points, it makes a line that goes from zero to its total emmision. Therefore i would need to add each row of the matrix to the previous one so i get a gradually increasing value. Any help on how i can get this done?
Thanks in advance, from a learning student.

Más respuestas (0)

Categorías

Productos

Versión

R2019b

Etiquetas

Preguntada:

el 13 de Sept. de 2020

Respondida:

el 13 de Sept. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by