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일

1 개 추천

uigetdir, uigetfile, uiputfile
Some combination of those.

댓글 수: 1

dinfo = dir( fullfile(workdir, 'image*') );
filelist = fullfile(workdir, {dinfo.name});

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Trigonometry에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by