Question about length function

13 visualizzazioni (ultimi 30 giorni)
Jake
Jake il 25 Apr 2014
Risposto: Geoff Hayes il 25 Apr 2014
What does length(X) return if X is an nxm matrix?

Risposta accettata

Geoff Hayes
Geoff Hayes il 25 Apr 2014
length returns the maximum of n and m:
>> help length
length Length of vector.
length(X) returns the length of vector X. It is equivalent
to MAX(SIZE(X)) for non-empty arrays and 0 for empty ones.

Più risposte (0)

Categorie

Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by