Clear Filters
Clear Filters

can we have browse option as in windows? how to find a path is valid or not?

1 view (last 30 days)
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)?

Accepted Answer

Titus Edelhofer
Titus Edelhofer on 2 Apr 2012
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

More Answers (0)

Community Treasure Hunt

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

Start Hunting!