Eghbal
Eghbal

Reputation: 3803

Double click on list box contents to open it in MATLAB

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?

Upvotes: 0

Views: 1133

Answers (1)

O'Neil
O'Neil

Reputation: 3849

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.

Upvotes: 1

Related Questions