Matlab- Function for select and use images

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 3K views
klipya
Messages
1
Reaction score
0
Hi! 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,
 
Physics news on Phys.org
Do you want to select these numbers based on what a folder or file name is? It seems like an odd way to do things. Maybe you should have a look at the output structure array for the dir command.

http://www.mathworks.com/help/techdoc/ref/dir.html
 
Last edited: