help-octave
[Top][All Lists]
Advanced

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

Re: How to leave out selected elements from a vector?


From: Francesco Potorti`
Subject: Re: How to leave out selected elements from a vector?
Date: Sat, 19 Jul 2008 00:07:09 +0200

>How does octave know that the vector is of booleans and not integers?
>Where is this type information stored, and how do I display it?

octave:92> a=ones(1,3);
octave:93> b=(a==1);
octave:94> whos a b

*** local user variables:

  Prot Name        Size                     Bytes  Class
  ==== ====        ====                     =====  ===== 
   rwd a           1x3                         24  double
   rwd b           1x3                          3  logical

Total is 6 elements using 27 bytes

-- 
Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa         Email: address@hidden
(entrance 20, 1st floor, room C71)     Web:   http://fly.isti.cnr.it/


reply via email to

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