[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "size(foo)" vs "size foo" (octave-3.4.3)
From: |
lukshuntim |
Subject: |
Re: "size(foo)" vs "size foo" (octave-3.4.3) |
Date: |
Sun, 05 Feb 2012 15:44:36 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20120130 Thunderbird/10.0 |
On 02/04/2012 10:00 PM, Carnë Draug wrote:
> On 4 February 2012 03:06, <address@hidden> wrote:
>> Is there any (help) command/function to show whether a name is a
>> function or a command?
>
> As Jordi as said, all functions are also commands.
>
> Still, about your question, the usage line of functions and commands
> help text will have the word "function" or "command" respectively
> (although the first line says functino for both)
>
>> help chdir
> `chdir' is a built-in function
>
> -- Command: cd dir
> -- Command: chdir dir
>
>> help plot
> `plot' is a function from the file
> /usr/local/share/octave/3.4.3-rc0/m/plot/plot.m
>
> -- Function File: plot (Y)
> -- Function File: plot (X, Y)
> -- Function File: plot (X, Y, PROPERTY, VALUE, ...)
> -- Function File: plot (X, Y, FMT)
> -- Function File: plot (H, ...)
> -- Function File: H = plot (...)
>
> Carnë
>
I think I now understand the help message. :-)
Thanks very much,
ST
--
Re: "size(foo)" vs "size foo" (octave-3.4.3), Bård Skaflestad, 2012/02/03