Getting error for this code as Index in position 1 exceeds array bounds. Pls tell solution

Answers (2)

Most likely, your image is smaller than 512x512.
If that's not the problem then give us the entire text of the error message.

Asked:

on 26 Nov 2019

Answered:

on 29 Nov 2019

Community Treasure Hunt

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

Start Hunting!