help-octave
[Top][All Lists]
Advanced

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

Re: var(1) = 0 ??


From: Jordi Gutiérrez Hermoso
Subject: Re: var(1) = 0 ??
Date: Sat, 28 Jan 2012 12:38:45 -0500

On 28 January 2012 11:11, pathematica <address@hidden> wrote:
> After a little reflection, I note that the proposed inclusion reads well
> (alerting to behaviour based on the number of elements in the set passed to
> it) but, whilst the description of the change is true ("behaviour when input
> is a scalar"), it is not comprehensive. For example, the dialogue at the
> terminal shown above demonstrates "behaviour when input is a vector of order
> one" as well behaviour when it is a scalar.

As far as the Octave interpreter is concerned, there is no difference
between scalars and vectors. You can use typeinfo to get the
"internal" type that Octave is using to represent a variable, but this
is mostly a debugging tool.

- Jordi G. H.


reply via email to

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