octave-maintainers
[Top][All Lists]
Advanced

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

Re: Functions in scripts


From: Nicholas Jankowski
Subject: Re: Functions in scripts
Date: Tue, 24 Jan 2017 15:04:25 -0500

On Tue, Jan 24, 2017 at 2:52 PM, Rik <address@hidden> wrote:
> On 01/24/2017 11:17 AM, Nicholas Jankowski wrote:
>
> Mike's questions still remains.  After running the original script, what
> does
>
> which f
>
> return?
>
> If it is empty then the function is localized to the script.
>
> --Rik

%%%%%%%%%%%%%%
 x = 1;

 z = f(x)

 function y = f(x)
 y = 2 * x;
 end
%%%%%%%%%%%%%%

>> testscript
z =
     2
>> which f
'f' not found.



reply via email to

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