help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Return to Octave Shell: Examples doesn't seems to work


From: Abdul Rahman Riza
Subject: Return to Octave Shell: Examples doesn't seems to work
Date: Sat, 15 Sep 2007 14:11:20 +0700 (ICT)

Thanks James,

I am succeeded gain raw number by typing "x" with these result

x =

   1.0000e+00   2.0000e+00
   5.1703e-01   2.0429e+00
   2.6829e-01   1.8851e+00
   1.4842e-01   1.6471e+00
   8.9507e-02   1.4001e+00
   5.8873e-02   1.1733e+00
   4.1893e-02   9.7583e-01
   3.1913e-02   8.0802e-01
   2.5754e-02   6.6730e-01
   2.1812e-02   5.5017e-01
   1.9231e-02   4.5311e-01
   1.7528e-02   3.7290e-01
   1.6420e-02   3.0675e-01
   1.5735e-02   2.5226e-01
   1.5361e-02   2.0741e-01
   1.5228e-02   1.7052e-01
   1.5288e-02   1.4019e-01
   1.5507e-02   1.1526e-01
   1.5864e-02   9.4777e-02
   1.6343e-02   7.7942e-02
   1.6933e-02   6.4109e-02
:

My question:

How can I return to octave shell to execute another command?

I am sorry for this newbie question making you guys feel inconvenience.

Regards,
Riza


"James Sherman Jr." <address@hidden> wrote:
I'm not sure what you mean by "integration result", but it looks like lsode worked fine.  Just type x to see raw numbers.

As for the plot, do you have gnuplot and/or x11 installed?  It seems that it can't find it.  For these types of problems, it probably would help to tell us version of octave/OS and other relevant stuff that you have installed.

James

On 9/5/07, Abdul Rahman Riza <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:
  1. Why there's no integration result?
  2. 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






Kunjungi halaman depan Yahoo! Indonesia yang baru!
reply via email to

[Prev in Thread] Current Thread [Next in Thread]