Question about length function

19 vues (au cours des 30 derniers jours)
Jake
Jake le 25 Avr 2014
What does length(X) return if X is an nxm matrix?

Réponse acceptée

Geoff Hayes
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.

Plus de réponses (0)

Catégories

En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by