[Top][All Lists]

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

Re: "size(foo)" vs "size foo" (octave-3.4.3)

From: Carnë Draug
Subject: Re: "size(foo)" vs "size foo" (octave-3.4.3)
Date: Sat, 4 Feb 2012 14:00:54 +0000

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

 -- 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 (...)


reply via email to

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