in matlab what actually do you mean by the error index exceeds matrix dimensions ?

2 ビュー (過去 30 日間)
Rakesh Singh
Rakesh Singh 2014 年 11 月 29 日
編集済み: Azzi Abdelmalek 2014 年 11 月 29 日
while implementing matlab program i got this error
index exceeds matrix dimensions
what is the basic meaning of this error ......
are the index dimensions being exceeded

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 11 月 29 日
編集済み: Azzi Abdelmalek 2014 年 11 月 29 日
For example if you have an array a containing 3 elements
a=[1 2 3]
If you write
a(4)
a does not contain 4 elements, you will get this message
Index exceeds matrix dimensions.

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by