Discussion:
ode45 function in package odepkg
Ether Jones
2018-12-11 04:29:56 UTC
Permalink
Please, how to install odepkg package so I can access ode45() function?

On Octave 3.6.4 running on Windows, I get the following error message:

GNU Octave, version 3.6.4
Copyright (C) 2013 John W. Eaton and others.
Octave was configured for "i686-pc-mingw32".

octave-3.6.4.exe:1> clear all;
octave-3.6.4.exe:2>
octave-3.6.4.exe:2> fvdp = @(t,y) [y(2); (1 - y(1)^2) * y(2) - y(1)]
fvdp =
@(t, y) [y(2); (1 - y(1) ^ 2) * y(2) - y(1)]

octave-3.6.4.exe:3> [t,y] = ode45 (fvdp, [0, 20], [2, 0])

warning: Octave provides lsode for solving differential equations. For more
information try `help lsode'. Matlab-compatible ODE functions are
provided by the odepkg package. See
`http://octave.sourceforge.net/odepkg/'.

Please read `http://www.octave.org/missing.html' to learn how you can
contribute missing functionality.

error: 'ode45' undefined near line 3 column 10
octave-3.6.4.exe:3>

If I type pck install -forge odepkg I get this error message:

octave-3.6.4.exe:4> pkg install -forge odepkg
error: get_forge_pkg: could not read URL, please verify internet connection
error: called from:
error: K:\OctaveVS\share\octave\3.6.4\m\pkg\private\get_forge_pkg.m at
line 77
, column 7
error: K:\OctaveVS\share\octave\3.6.4\m\pkg\pkg.m at line 2414, column 15
error: K:\OctaveVS\share\octave\3.6.4\m\pkg\pkg.m at line 374, column 32
octave-3.6.4.exe:4>





--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
Tatsuro MATSUOKA
2018-12-11 06:49:09 UTC
Permalink
----- Original Message -----
From: Ether Jones 
To: help-octave
Date: 2018/12/11, Tue 13:29
Subject: ode45 function in package odepkg
Please, how to install odepkg package so I can access ode45() function?
GNU Octave, version 3.6.4
Copyright (C) 2013 John W. Eaton and others.
Octave was configured for "i686-pc-mingw32".
octave-3.6.4.exe:1> clear all;
octave-3.6.4.exe:2>
fvdp =
@(t, y) [y(2); (1 - y(1) ^ 2) * y(2) - y(1)]
octave-3.6.4.exe:3> [t,y] = ode45 (fvdp, [0, 20], [2, 0])
warning: Octave provides lsode for solving differential equations.  For more
information try `help lsode'.  Matlab-compatible ODE functions are
provided by the odepkg package.  See
`http://octave.sourceforge.net/odepkg/'.
Please read `http://www.octave.org/missing.html' to learn how you can
contribute missing functionality.
error: 'ode45' undefined near line 3 column 10
octave-3.6.4.exe:3>
octave-3.6.4.exe:4> pkg install -forge odepkg
error: get_forge_pkg: could not read URL, please verify internet connection
error: 
K:\OctaveVS\share\octave\3.6.4\m\pkg\private\get_forge_pkg.m
at
line 77
, column 7
error:  K:\OctaveVS\share\octave\3.6.4\m\pkg\pkg.m
at line 2414, column 15
error:  K:\OctaveVS\share\octave\3.6.4\m\pkg\pkg.m
at line 374, column 32
octave-3.6.4.exe:4>
Octave 3.6.4 is obsoleted.

Please use the latest version (octave-4.4.1)
Octave 4.4.1 support ode45 as a core function

For install see
http://wiki.octave.org/Octave_for_Microsoft_Windows


Tatsuro

Loading...