|
From: | James Sherman Jr. |
Subject: | Re: plot and graphs |
Date: | Mon, 3 Sep 2012 08:14:07 -0400 |
On Mon, Sep 3, 2012 at 12:38 PM, Andy Buckle <address@hidden> wrote:
On 3 September 2012 12:09, Mahvish Nazir <address@hidden> wrote:Why not?
> Can we plot the integrals using octave. I know we can plot functions but can
> we plot the integral of the function? please help
>x=0:.1:1;
>y=x;
>plot(x,y)
>hold on
>q=cumtrapz(x,y);
>plot(x,q)
>plot(x,x^2/2,'x')
--
/* andy buckle */
Thanks Andy!What if we have a function say (cos(t^2))^2*exp(i*t) and we want to plot its integral over the limits -5 to 5? how do we do that?
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave
[Prev in Thread] | Current Thread | [Next in Thread] |