f



Function n=?ISO-8859-1?Q?=B0?= byte

Hi
I have just a question :
does it exist a Matlab function that is able to check if a variable
or a data array are of Int 16 or Int 32 ?
Or perhaps a function that could give me the number of bytes ?
Thaks a lot
cheers
Giuseppe
0
10/14/2003 5:51:56 PM
comp.soft-sys.matlab 211266 articles. 15 followers. lunamoonmoon (258) is leader. Post Follow

2 Replies
547 Views

Similar Articles

[PageSpeed] 9

>> a = int16(5)
a =
     5
>> s = whos('a')
s =
     name: 'a'
     size: [1 1]
    bytes: 2
    class: 'int16'

Mazen
"giuseppe" <giuseppe.brugnano@email.it> wrote in message
news:eec5791.-1@WebX.raydaftYaTP...
> Hi
> I have just a question :
> does it exist a Matlab function that is able to check if a variable
> or a data array are of Int 16 or Int 32 ?
> Or perhaps a function that could give me the number of bytes ?
> Thaks a lot
> cheers
> Giuseppe


0
mkachmar (12)
10/14/2003 7:17:29 PM
giuseppe:
<SNIP wants to check the class of his var>


a hint:
     z=uint16(12);
     isa(z,'uint16')
     isa(z,'cell')
% see
% help isa
% help datatypes
% for more infos


us
0
us1 (8051)
10/14/2003 8:55:53 PM
Reply: