Help with the below error

2 views (last 30 days)
Amy Topaz
Amy Topaz on 28 Mar 2022
Edited: per isakson on 28 Mar 2022
When do we get the below error in Matlab?
  1 Comment
Mahmoud Ashraf
Mahmoud Ashraf on 28 Mar 2022
can you write your code ?

Sign in to comment.

Accepted Answer

per isakson
per isakson on 28 Mar 2022
Edited: per isakson on 28 Mar 2022
Example
A = 17; % A is a scalar
A(2) % there is no element with index 2
Index exceeds the number of array elements. Index must not exceed 1.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!