from IDL to Matlab

2 Ansichten (letzte 30 Tage)
hasan alhussaini
hasan alhussaini am 28 Jul. 2017
Kommentiert: Walter Roberson am 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

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by