help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: function


From: Sergei Steshenko
Subject: Re: function
Date: Sat, 8 Nov 2008 19:40:47 -0800 (PST)



--- On Sat, 11/8/08, Ivan Sutoris <address@hidden> wrote:

> From: Ivan Sutoris <address@hidden>
> Subject: Re: function
> To: address@hidden
> Cc: address@hidden
> Date: Saturday, November 8, 2008, 4:15 PM
> Hi
> 
> I've tried your example, and I think the problem is
> that your file
> starts with function definition, so Octave understands it
> as function,
> not script. You should either put function definition in
> one file and
> rest of commands in second file (and then run the second
> file), or put
> some commands before function definition.
> 
> Regards
> Ivan Sutoris
> _______________________________________________

That's how it works for me in a script file:

foo = ...

function bar ...

Regards,
  Sergei.


      


reply via email to

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