Open tool in Guide GUI app won't run uigetfile
Info
This question is closed. Reopen it to edit or answer.
Show older comments
I've compiled an application for Matlab that, when run and the open tool is selected from the toolbar, is supposed to directthe user to the default location specified in the gui function. This location is a specific directory on one of the stash locations on a network. However, when the program is actually run and the open tool is selected, the dialog box points to the local drive directory instead.
In contrast, this is not an issue when the .m file is run in Matlab as a standalone function. Is there a reason the uigetfile cannot locate the default directory name when run within the application?
2 Comments
Jan
on 7 Feb 2015
Please use the chance to edit the original question instead of appending a comment.
Use fullfile instead, because it considers trailing file separators:
dir(fullfile(dirpath, '*.jpg'));
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!