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
0 个评论
采纳的回答
Sean de Wolski
2017-7-28
uigetdir, uigetfile, uiputfile
Some combination of those.
1 个评论
Walter Roberson
2017-7-28
dinfo = dir( fullfile(workdir, 'image*') );
filelist = fullfile(workdir, {dinfo.name});
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!