Hi I'm trying to sum all the numbers that I'm going to write in array.
Because X-values range from 0 to 10000, I need something to automatically sum all the Y-values that ranges from -1000 to 1000.
I'm assuming that I have to use tabread object.
but I don't know how to continuously add the sequence of numbers.
For example if X-values are 0,1,2,3 and written Y-values are 10,20,30,40,
and if I put corresponding X-values into tabread object, It should firstly output 10, and then 30(10+20), and then 60(10+20+30), and then 100(10+20+30+40).
So, what I basically want is to automatically sum all the Y-values in array.
Somebody please help me!