Hi
I have the following problem:
>> x = [1 2 3]
x =
1 2 3
>> length(x)
Index exceeds matrix dimensions.
????

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 2 日
編集済み: Azzi Abdelmalek 2013 年 2 月 2 日

0 投票

clear length
x=[1 2 3]
length(x)
% Maybe you've used length as a variable

1 件のコメント

MiauMiau
MiauMiau 2013 年 2 月 2 日
That's right, I indeed did. Thanks a lot

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by