> This is just a general question regarding how fields are
> stored in the handles structure for a GUI. Why are all of
> the fields represented by doubles? Do the values have any
> specific meaning other than for some sort on indexing?
There is no specific meaning (or rather, any such meaning is
implementation-dependent and should not be relied upon).
The designation of the handle as a double (rather than uint64 or int64)
is probably historical. Prior to MATLAB 7.0 (R14), all numbers in MATLAB
were doubles.
Gautam
Steven Lord - 15 Jul 2008 16:47 GMT
>> This is just a general question regarding how fields are
>> stored in the handles structure for a GUI. Why are all of
[quoted text clipped - 7 lines]
> is probably historical. Prior to MATLAB 7.0 (R14), all numbers in MATLAB
> were doubles.
Actually, I believe most of the integer data types (the *int8, *int16, and
*int32 types) were introduced in MATLAB 5.0 (R8), along with the first class
system, structs, and cells. I don't remember when the single data type was
introduced, but it wouldn't surprise me if it were either in version 5.0 or
in one of the earliest versions (perhaps even Cleve's original version.)

Signature
Steve Lord
slord@mathworks.com