How to open a browser window using the MATLAB button?

I want to know how I can connect to a website when I click a button in the graphical interface. For example, if I click the button, a browser window opens for "stackoverflow.com/".

+4
source share
1 answer

In the callback for the GUI button , you can make a call to the WEB function to open a web browser for a given URL:

web('stackoverflow.com/'); 

For instance:

 uicontrol('Style','pushbutton',... 'Position',[50 50 100 25],... 'String','Go to SO!',... 'Callback',@(hObject,eventData) web('stackoverflow.com/')); 
+5
source

All Articles