[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Examples doesn't seems to work
From: |
Henry F. Mollet |
Subject: |
Re: Examples doesn't seems to work |
Date: |
Thu, 06 Sep 2007 10:35:51 -0700 |
User-agent: |
Microsoft-Entourage/11.1.0.040913 |
1) The integration results are in the workspace
rwd x 200x2 3200 matrix
Type x at the octave prompt and they will appear on your screen. You can
also delete the ';' at the end of the following code line, which supresses
the output
x = lsode ("f", x0, t);
2) Your version of octave (on your platform) cannot find the X11 driver. Not
sure why your gnuplot cannot find it as my .gnuplot has no directions on
where to look.
[~] -bash-2.05b 512$ locate gnuplot_x11
/Applications/GnuPlot.app/Contents/Resources/libexec/gnuplot/4.2/gnuplot_x11
/usr/local/libexec/gnuplot/4.0/gnuplot_x11
[~] -bash-2.05b 511$ cat .gnuplot
set mouse
set loadpath "/usr/local/share/gnuplot/demo/" "/usr/local/bin/gnuplot"
Henry
on 9/5/07 11:06 AM, Abdul Rahman Riza at address@hidden wrote:
> Dear All,
>
> I just installed octave and run an examples in
> http://www.gnu.org/software/octave/doc/interpreter/Simple-Examples.html#Simple
> -Examples
>
> After invoke this command:
>
> octave:1> function xdot = f (x, t);
>> r = 1.4;
>> k = 1.4;
>> a = 1.5;
>> b = 0.16;
>> c = 0.9;
>> d = 0.8;
>> xdot(1) = r*x(1)*(1 - x(1)/k) - a*x(1)*x(2)/(1 + b*x(1));
>> xdot(2) = c*a*x(1)*x(2)/(1 + b*x(1)) - d*x(2);
>> endfunction
> octave:2> x0 = [1; 2];
> octave:3> t = linspace (0, 50, 200)';
> octave:4> x = lsode ("f", x0, t);
> octave:5> plot (t, x)
> octave:6> Expected X11 driver: /usr/lib/gnuplot/gnuplot_x11
> Exec failed: No such file or directory
> See 'help x11' for more details
>
>
> My Question:
>
> Why there's no integration result?
> Why can't I get the plot of the function?
> Regards,
> Riza
>
>
>
>
>
>
>
>
>
> ---------------------------------
> Bergabunglah dengan orang-orang yang berwawasan, di bidang Anda di Yahoo!
> Answers
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
Re: Examples doesn't seems to work, James Sherman Jr., 2007/09/05
Re: Examples doesn't seems to work, Thomas Weber, 2007/09/06
Re: Examples doesn't seems to work,
Henry F. Mollet <=