Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: plotting cumulative number plot
Replies: 1   Last Post: Apr 1, 2013 9:12 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Nasser Abbasi

Posts: 5,598
Registered: 2/7/05
Re: plotting cumulative number plot
Posted: Apr 1, 2013 9:12 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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))





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.