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?

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)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!