Question

I have a list box that contains some existed file names. I have a push button. User select the file needed and after that click on push button to open it. Is any way to open a file when user double click on the file name of the file in list box?

Was it helpful?

Solution

You can use the Callback of the uicontrol listbox, along with the SelectionType property of the figure object. You can find an example in MATLAB documentation here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top