If I have the following code, how to display x(10) after x(9999) causing an error?
x = ones(1, 10);try x(1) x(9999) x(10)catch ME fprintf(ME.message)end
The output I got is:
ans = 1Index exceeds the number of array elements (10).
Thanks!
Best Answer