from IDL to Matlab

4 visualizzazioni (ultimi 30 giorni)
hasan alhussaini
hasan alhussaini il 28 Lug 2017
Commentato: Walter Roberson il 28 Lug 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

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su File Operations in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by