28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2length<br />

Purpose Length of vector<br />

Syntax n = length(X)<br />

length<br />

Description The statement length(X) is equivalent to max(size(X)) for nonempty arrays<br />

and 0 for empty arrays.<br />

Examples x = ones(1,8);<br />

n = length(x)<br />

n = length(X) returns the size of the longest dimension of X. If X is a vector,<br />

this is the same as its length.<br />

n =<br />

8<br />

x = rand(2,10,3);<br />

n = length(x)<br />

n =<br />

10<br />

See Also ndims, size<br />

2-1301

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!