help-octave
[Top][All Lists]
Advanced

[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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]