Question about length function
조회 수: 18 (최근 30일)
이전 댓글 표시
What does length(X) return if X is an nxm matrix?
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!