help-octave
[Top][All Lists]
Advanced

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

Re: finding size of variable


From: Michele
Subject: Re: finding size of variable
Date: Wed, 4 Jan 2017 11:27:36 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Dear Kumar,

for the highest and lowest values use realmax and realmin. To know the size of a variable use size. For example

A = [1,2,3];

size(A)

ans =

   1   3

If you want to know more details about a variable, use whos instead

whos A

Variables in the current scope:

   Attr Name        Size                     Bytes  Class
   ==== ====        ====                     =====  =====
        A           1x3                         24  double

Total is 3 elements using 24 byte

Michele Ginesi


On 01/03/2017 07:08 PM, Kumar Gaurav wrote:
How can I find the size of a variable in Octave ?
How can I find the highest and lowest possible values of real data type ?

In C++, we have sizeof() function. Is there anything similar to that in Octave ?

--
Kumar Gaurav
Bangalore,
INDIA


_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave


reply via email to

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