Question about length function

19 ビュー (過去 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 Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by