Date: Apr 1, 2013 9:12 AM
Author: Nasser Abbasi
Subject: Re: plotting cumulative number plot

On 4/1/2013 7:43 AM, Moon Datta wrote:
> Sir,
> I have a column namely P . I want to plot a curve which will have values of P
>in the x axis and the cumulative number of that values of P in y axis. How can I do this in matlab?
>
> Please help me
> Thanks in advance
>
> regards
> Moon
>



You mean like this?

P = 1:10;
plot(P,cumsum(P))