MATLAB: How can I file-open menu in the gui application

filegui

I am about to write gui application that reads data in file and plots it my question is how to write file-read menu in matlab's GUI,so that user can choose file to work with only by mouse click ? somthing similiar to WORD,when you click on file,choose open, and when you can see all files in directory.
Any help would be great.
Thank you.

Best Answer

You can add a menu in the menubar either using GUIDE or programmatically. The callback of this menu should contain a call to uigetfile to get the filename.