MATLAB Matlab- Function for select and use images

AI Thread Summary
The discussion centers on a user seeking assistance with a Matlab code for an interpolation process that requires selecting two dates surrounding a chosen image file. The user wants the code to automatically select images numbered 121, 122, 124, and 125 based on a specific image number, such as 123. A response suggests reconsidering the method of selection, questioning whether the selection should be based on folder or file names. It also recommends reviewing the output structure array from the dir command in Matlab for potential solutions.
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:

Similar threads

Replies
4
Views
2K
Replies
9
Views
5K
Replies
3
Views
2K
Replies
1
Views
2K
Replies
2
Views
2K
Back
Top