Question about length function

4 views (last 30 days)
Jake
Jake on 25 Apr 2014
Answered: Geoff Hayes on 25 Apr 2014
What does length(X) return if X is an nxm matrix?

Accepted Answer

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

More Answers (0)

Categories

Find more on Data Types in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!