[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36141] error message 'invalid use of script i
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #36141] error message 'invalid use of script in index expression' with inconsistent behaviour |
Date: |
Mon, 09 Apr 2012 16:06:36 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 |
Update of bug #36141 (project octave):
Status: None => Works For Me
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
I think the problem is that you have the file mesh.m which contains your
script in the current working directory. When you call 'mesh' from the
command-line it looks and finds mesh.m in the current working directory and
mesh() in the Octave library of functions. The current working directory has
precedence so it starts running "tx = ty = linspace ...". When Octave comes
to the last line of the file it is "mesh (tx, ty, tz)". Again, Octave
resolves the mesh call to the mesh.m script which does not accept arguments.
I downloaded your scripts and when I run the latest stable version of Octave
(3.6.1) I get a warning message
warning: function ./mesh.m shadows a core library function
I think you can resolve your problem by simply renaming mesh.m to mymesh.m.
Also, I would really recommend upgrading your version of Octave. 3.2.4 is two
generations old and no longer supported. 3.6.1 is a big improvement over that
earlier version.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36141>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/