Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab- Function for select and use images

  1. Jun 20, 2012 #1
    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,
  2. jcsd
  3. Jun 24, 2012 #2
    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.

    Last edited: Jun 24, 2012
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook