Help with the below error

When do we get the below error in Matlab?

 Accepted Answer

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

Asked:

on 28 Mar 2022

Edited:

on 28 Mar 2022

Community Treasure Hunt

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

Start Hunting!