[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:
http://www.gnu.org/software/octave/doc/interpreter/Functions-and-Scripts.html
HTH,
- Jordi G. H.
- function help, Tom Bohdan, 2012/02/23
- Re: function help, Doug Stewart, 2012/02/23
- Re: function help, Ben Abbott, 2012/02/23
- Re: function help, damian.harty, 2012/02/23
- Re: function help, damian.harty, 2012/02/23
- Re: function help,
Jordi Gutiérrez Hermoso <=
- Re: function help, Ben Abbott, 2012/02/23
- Re: function help, Ben Abbott, 2012/02/23
- RE: function help, Damian Harty, 2012/02/24
- Re: function help, Doug Stewart, 2012/02/24
- Re: function help, damian.harty, 2012/02/24
- Re: function help, Doug Stewart, 2012/02/24
- Re: function help, Doug Stewart, 2012/02/24
- Re: function help, Ben Abbott, 2012/02/24
- Re: function help, Doug Stewart, 2012/02/24
- Re: function help, Ben Abbott, 2012/02/25