help-octave
[Top][All Lists]
Advanced

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

Re: Help with some kickass demo


From: Doug Stewart
Subject: Re: Help with some kickass demo
Date: Tue, 14 Jul 2015 11:47:50 -0400



On Tue, Jul 14, 2015 at 11:40 AM, Doug Stewart <address@hidden> wrote:


On Tue, Jul 14, 2015 at 6:01 AM, Nicolas Borboën <address@hidden> wrote:
Dear All,
        I'm not a Octave user but I've just installed it in a Docker container and I'm looking for stunning demos to demonstrate how it works (e.g.. really cool plot).

I've found "Visualizing the Lorenz Strange Attractor with Octave" on
http://www.ibm.com/developerworks/library/l-datavistools/  (Listing 4), but it is done with Octave 2.1.50 and I'm running the last one (3.8.1 in a ubuntu-like docker). Get some error when running it.
Can someone would be kind enough to help me to plot the same graph on the latest version or head me to some other "up to date" cool plot scripts ?

In case of someone is interessted in the docker file / image, you can check it out on https://registry.hub.docker.com/u/epflsti/octave-x11-novnc-docker/

Thanks in advance,
Nicolas
--
Nicolas Borboën        Responsable informatique
EPFL   École polytechnique fédérale de Lausanne
IGM                 Institut de génie mécanique
CH-1015 Lausanne 15  -  Station 9  -  ME C3 397
fix. +41 21 693 54 55     mob. +41 76 615 25 80
http://igm.epfl.ch           http://www.epfl.ch

_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave

I am looking at it now 
give me 5 min.


--
DAS



try this

1
 function y = lorenz( x, t )
y = [10 * (x(2) - x(1));
x(1) * (28 - x(3));
x(1) * x(2) - 8/3 * x(3)];
endfunction

 x = lsode("lorenz", [3;15;1], (0:0.01:25)');
 
 plot3(x(:,1),x(:,2),x(:,3))
 



--
DAS


reply via email to

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