help-octave
[Top][All Lists]
Advanced

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

Re: Running Matlog in Octave


From: David Bateman
Subject: Re: Running Matlog in Octave
Date: Tue, 27 Oct 2009 20:48:17 +0100
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)

K. Habel wrote:
Am 27.10.2009 13:51, schrieb Philipp Leser:

Hey;

I try to play around with some Vehicle Routing Problems and the according m. files in the Matlog toolbox (http://www.ise.ncsu.edu/kay/matlog/). I do not have a license for MATLAB at home (only at the university), so I wanted to run the toolbox from Octave. I tried it at the university and the files do run in MATLAB.

The functions vrpsweep and vrpsavings create an error when called using the simple example presented in the help/comment section in the header of the file. The error occurs in the first real line of code :

"

error:

error: called from

         vrpsavings at line 41 column 1

keyboard : stopped in C:\Octave\3.2.2_gcc-4.3.0\bin\matlog\vrpsavings.m

debug>

"

Line 44 column 1 is :

error(nargchk(1,6,nargin))

Checking nargin in debug mode results in nargin = 2 (as expected). So 1<nargin<6. Where is the problem? Probably I am dumb, but I don't know where to start.

ThX in advance.

P.S.: sorry for my bad English. I am no native speaker.


_______________________________________________
Help-octave mailing list
address@hidden
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
Hello,

I had the same problem recently, see:

http://www.nabble.com/error%28%29-incompatibility-td25686298.html#a25688267

It has been fixed in the developer sources.

Kai
A workaround would be to replace

error(nargchk(1,6,nargin))

with

str = nargchk (1, 6, nargin);
if (~isempty (str))
 error (str);
end

that should work in Matlab and Octave correctly.

D.


--
David Bateman                                address@hidden
35 rue Gambetta                              +33 1 46 04 02 18 (Home)
92100 Boulogne-Billancourt FRANCE            +33 6 72 01 06 33 (Mob)



reply via email to

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