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.

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Scatter Plots 的更多信息

产品

版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by