I'm writing you to ask about a question, to see if anyone knows how to
solve it. I'm doing an interpolation process and I would add a function to a
Matlab code that would select and use two dates up and down in the process for a
selected image (I opened it before with the function uigetfile). For example, I
have an image in a folder with the number 123 and I want that the code would
select the numbers 121, 122, 124 and 125 automatically.

Greetings and thank you very much in advance,