Effacer les filtres
Effacer les filtres

from IDL to Matlab

2 vues (au cours des 30 derniers jours)
hasan alhussaini
hasan alhussaini le 28 Juil 2017
Commenté : Walter Roberson le 28 Juil 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

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur File Operations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by