Question about length function
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jake
am 25 Apr. 2014
Beantwortet: Geoff Hayes
am 25 Apr. 2014
What does length(X) return if X is an nxm matrix?
0 Kommentare
Akzeptierte Antwort
Geoff Hayes
am 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!