[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nargout flagged as invalid function in mechanics package, function m
From: |
Mike Miller |
Subject: |
Re: nargout flagged as invalid function in mechanics package, function mdsim |
Date: |
Sat, 13 Jul 2013 18:37:38 -0400 |
On Fri, Jul 12, 2013 at 11:15:09 -0500, James S. Meyer wrote:
> I have been attempting to run the demos (demo1, demo2, demo3) in the
> mechanics package, molecular dynamics section, but the program crashes in
> one of the functions mdsim by flagging the narg operator in row 76, column 3
> with the message octave:2> mdjim (This is just a copy of the first
> demonstration program).
>
> octave:2> mdjim
> error: nargout: invalid function
> error: called from:
> error:
> C:\Octave\Octave3.6.4_gcc4.6.2\share\octave\packages\mechanics-1.3.1\molecularDynamics\mdsim.m
> at line 76, colu
> mn 3
> error: C:\Users\jsmeyer.STGREGORYS\mdjim.m at line 6, column 12
> [...]
> Can anyone spot why “nargout” would be an invalid function in mdsim, line
> 76, column 3, and if so, how I might rectify the problem
The (admittedly unclear) error message is from nargout telling you
that the "demofunc1" function is not in your path. That function is in
the same directory as mdsim in the mechanics package.
Any reason why you aren't simply running "demo mdsim"? That works for me.
--
mike