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

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by