Question about length function
13 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
What does length(X) return if X is an nxm matrix?
0 Commenti
Risposta accettata
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.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!