[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: function help
From: |
damian.harty |
Subject: |
Re: function help |
Date: |
Fri, 24 Feb 2012 02:25:31 -0800 (PST) |
> The exxample.m file isn't a script file. It is a function file.
I read the documentation as pointed out in an earlier post and didn't learn
this. I can't comment on whether my reading or the documentation is at
fault, or both. What would have taught me is the statement "An m-file that
begins with the 'function' is treated as a 'function file' and must have the
same name as the function in it. It can only contain one function."
> If you'd like to make a script file, the first executable command must be
> something other than "function ..."
This was in fact the key piece of information that was missing all along.
Now everything works as might be expected...
Damian
-----
Senior Research Fellow - Vehicle & System Dynamics
Coventry University
United Kingdom
--
View this message in context:
http://octave.1599824.n4.nabble.com/function-help-tp4414098p4416751.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Re: function help, (continued)
- Re: function help, Doug Stewart, 2012/02/24
- Re: function help, Ben Abbott, 2012/02/25
- Re: function help, Doug Stewart, 2012/02/25
- Re: function help, John W. Eaton, 2012/02/25
- Re: function help, Ben Abbott, 2012/02/25
- Re: function help, damian.harty, 2012/02/24
Re: function help, Ben Abbott, 2012/02/23
Re: function help, Ben Abbott, 2012/02/23
Re: function help, Ben Abbott, 2012/02/23
- Re: function help,
damian.harty <=