Re: how to determine a length of a vector
- From: "Steve Amphlett" <Firstname.Lastname@xxxxxxxxxxxxxxxx>
- Date: Mon, 17 Jul 2006 12:48:44 -0400
Randy Poe wrote:
size(Y) will give you the array dimensions. length(Y)
will give you the first dimension.
That description of length always catches me out as I extend my code
from one to two dimensions. length(x) actually returns the same as
max(size(x)), so there will be a point where it flips from one
dimension to another as the arrays grow.
.
- Follow-Ups:
- Re: how to determine a length of a vector
- From: Randy Poe
- Re: how to determine a length of a vector
- References:
- how to determine a length of a vector
- From: Tessa
- Re: how to determine a length of a vector
- From: Randy Poe
- how to determine a length of a vector
- Prev by Date: weird
- Next by Date: Re: weird
- Previous by thread: Re: how to determine a length of a vector
- Next by thread: Re: how to determine a length of a vector
- Index(es):
Relevant Pages
|