Borrar filtros
Borrar filtros

Summing an array and plotting it.

3 visualizaciones (últimos 30 días)
Yarne Schlösser
Yarne Schlösser el 12 de Oct. de 2020
Respondida: madhan ravi el 12 de Oct. de 2020
I am trying to write an script to add values from an array. Let's say.
A = [0,1,2,3,4]
I am looking for something which does the following
Step 1: 0
Step 2: 0+1 = 1
Step 3 = 0+1+2 = 3
Step 4 = 0 +1+2+3 = 6 and this for the whole array.
How would I also plot this script?
Kind regards.

Respuestas (1)

madhan ravi
madhan ravi el 12 de Oct. de 2020
doc cumsum
doc plot


Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.


Community Treasure Hunt

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

Start Hunting!

Translated by