Clear Filters
Clear Filters

from IDL to Matlab

2 views (last 30 days)
hasan alhussaini
hasan alhussaini on 28 Jul 2017
Commented: Walter Roberson on 28 Jul 2017
Hi I'm trying to translate an IDL script, i came accross the following code
workdir = dialog_pickfile(/select your working directory)
filelist = file_search(workdir,'image*')
i'm trying to find the matlab equivalent of those two lines
also workdir is where i've stored all my images

Accepted Answer

Sean de Wolski
Sean de Wolski on 28 Jul 2017
uigetdir, uigetfile, uiputfile
Some combination of those.
  1 Comment
Walter Roberson
Walter Roberson on 28 Jul 2017
dinfo = dir( fullfile(workdir, 'image*') );
filelist = fullfile(workdir, {dinfo.name});

Sign in to comment.

More Answers (0)

Categories

Find more on File Operations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!