Why do I get "Array indices must be positive integers or logical values" error when reading an image?
Show older comments
I keep getting this error but I don't know why. I just needed to upload an image on the script.

Answers (1)
Jan
on 4 Oct 2022
Did you define "imshow" as a variable?
whos imshow
which imshow -all
To clear it:
clear imshow
But it is strange, that the error message mentions imshow in line 109, while the displayed command is in line 111.
Please care for posting the code and the message exactly how they are existing.
Categories
Find more on Images in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!