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)?

采纳的回答

Titus Edelhofer
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 CenterFile Exchange 中查找有关 Whos 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by