help-octave
[Top][All Lists]
Advanced

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

ranges?


From: Dmitri A. Sergatskov
Subject: ranges?
Date: Tue, 22 Aug 2006 16:17:42 -0600

I thought that ranges used to be a different class. But I just noticed that in
2.9.7 is is shown as "double" Is it OK?

octave:1> idx = (1:10)
idx =

  1   2   3   4   5   6   7   8   9  10

octave:2> whos idx

*** local user variables:

 Prot Name        Size                     Bytes  Class
 ==== ====        ====                     =====  =====
  rwd idx         1x10                        24  double

Total is 10 elements using 24 bytes

octave:3> a = idx *1
a =

  1   2   3   4   5   6   7   8   9  10

octave:4> whos a

*** local user variables:

 Prot Name        Size                     Bytes  Class
 ==== ====        ====                     =====  =====
  rwd a           1x10                        80  double

Total is 10 elements using 80 bytes

octave:5>

-----------------------------------

Sincerely,

Dmitri.
--


reply via email to

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