Re: how to determine a length of a vector
- From: "Randy Poe" <poespam-trap@xxxxxxxxx>
- Date: 17 Jul 2006 09:42:25 -0700
Tessa wrote:
I have a structure and would like to determine the size of it and
compare it to the size of another structure. For example,
Y = [Y; object.Y]
X = [X; object.X]
How do I determine the size?
Size in what sense?
size(Y) will give you the array dimensions. length(Y)
will give you the first dimension.
If you are actually looking for the memory size in
bytes, you can use the functional version of WHOS,
as in
whos('Y')
(Note the argument is the string 'Y').
- Randy
.
- Follow-Ups:
- Re: how to determine a length of a vector
- From: Steve Amphlett
- Re: how to determine a length of a vector
- References:
- how to determine a length of a vector
- From: Tessa
- how to determine a length of a vector
- Prev by Date: Re: colorbar overlapping plot label
- Next by Date: weird
- Previous by thread: how to determine a length of a vector
- Next by thread: Re: how to determine a length of a vector
- Index(es):