[Top][All Lists]

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

Re: function help

From: Jordi Gutiérrez Hermoso
Subject: Re: function help
Date: Thu, 23 Feb 2012 15:52:23 -0500

On 23 February 2012 15:46, damian.harty <address@hidden> wrote:
> Well, that's the bit I'm not getting. If they are in the script file I'm
> working in, they don't get much more local than that, do they? I can
> understand why they would be invisible, say, from the command line despite
> being present in a script, but I can't understand why they aren't visible
> when they are /in this file/ and why instead they /have to be in a file with
> their own name/.

They should be visible from inside the same file. That's called a
subfunction. What exactly are you putting inside your m-file?

Are you aware of the distinction between script files and function
files? They're both m-files, but they behave quite differently:

- Jordi G. H.

reply via email to

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