from IDL to Matlab

2 次查看(过去 30 天)
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

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by