I need MATLAB to be able to open up Windows explorer so that the user can select a file and upon pressing 'Open' in explorer, Matlab will take the filepath of the selected file and display it in a text box.

I've been using the winopen command and can get explorer open, but cannot seem to find a way to proceed with the rest of my functionality.

Any assistance would be much appreciated.

有帮助吗?

解决方案

I believe uigetfile is what you need:

http://www.mathworks.com/help/matlab/ref/uigetfile.html

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top