[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sharing auxilary functions
From: |
John W. Eaton |
Subject: |
Re: Sharing auxilary functions |
Date: |
Fri, 17 Jun 2005 14:57:12 -0400 |
On 17-Jun-2005, Keith Goodman wrote:
| I think I've seen this trick on the mailing list before.
|
| Create a file called funcs that contains (you have to use endfunction):
|
| xcsdfg = 1;
| clear xcsdfg
All you need to do so that Octave will interpret the file as a script
instead of a function file is ensure that the first non-comment token
in the file is not "function". Something like
1;
will work without adding anything to a symbol table.
jwe
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------