Running Matlog in Octave

View: New views
3 Messages — Rating Filter:   Alert me  

Running Matlog in Octave

by Philipp Leser-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: Running Matlog in Octave

by kahacjde :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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 Help-octave@... 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

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

Re: Running Matlog in Octave

by dbateman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
>> Help-octave@...
>> 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                                dbateman@...
35 rue Gambetta                              +33 1 46 04 02 18 (Home)
92100 Boulogne-Billancourt FRANCE            +33 6 72 01 06 33 (Mob)

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