octave-maintainers
[Top][All Lists]
Advanced

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

Re: Assert question


From: Dmitri A. Sergatskov
Subject: Re: Assert question
Date: Thu, 4 Mar 2010 17:03:03 -0600

On Thu, Mar 4, 2010 at 4:57 PM, Robert T. Short
<address@hidden> wrote:
> Why does the following fail?  This is octave 3.2.3.
>
> octave:1>  assert(ones(1,2),[1 1])
> error: assert (ones (1, 2),[1, 1]) expected
>   1   1
> but got
>   1   1
> Type range != matrix
>
> Bob
>
>
>

Perhaps related to that:

octave:13> a=ones(1,2)
a =

   1   1

octave:14> whos a
Variables in the current scope:

  Attr Name        Size                     Bytes  Class
  ==== ====        ====                     =====  =====
       a           1x2                         24  double

Total is 2 elements using 24 bytes

octave:15> b=[1, 1]
b =

   1   1

octave:16> whos b
Variables in the current scope:

  Attr Name        Size                     Bytes  Class
  ==== ====        ====                     =====  =====
       b           1x2                         16  double

Total is 2 elements using 16 bytes

Dmitri.
--



reply via email to

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