Question about length function

조회 수: 18 (최근 30일)
Jake
Jake 2014년 4월 25일
답변: Geoff Hayes 2014년 4월 25일
What does length(X) return if X is an nxm matrix?

채택된 답변

Geoff Hayes
Geoff Hayes 2014년 4월 25일
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개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by