can we have browse option as in windows? how to find a path is valid or not?
1 次查看(过去 30 天)
显示 更早的评论
There are two questions.. 1) can we have browse option as in windows??..like if we want to select a file(in windows) we either enter the path or go for browse option....can we have the same in matlab?
2) how to find whether a path is valid or not(using matlab)?
0 个评论
采纳的回答
Titus Edelhofer
2012-4-2
Hi,
1) I guess you are looking for the uigetfile function, that opens a browse dialog. You could e.g. have in your GUI a pushbutton named "..." that calls uigetfile.
2) for a path:
exist(thePath, 'dir')
Titus
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!