Question about length function
19 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jake
le 25 Avr 2014
Réponse apportée : Geoff Hayes
le 25 Avr 2014
What does length(X) return if X is an nxm matrix?
0 commentaires
Réponse acceptée
Geoff Hayes
le 25 Avr 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!