Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

How can I open about 5 different url's on their own new-window using the system's browser in matlab?

Asked by Denice on 16 Jan 2013

I can do it using the web(url, -new) function, but I want to do this using the system's web browser (windows explorer).

When I call the web function over and over again, it merely creates a new tab in the existing window. But I want new windows created every time I call it.

How can I do this? Is there any other function (besides 'web') to do this?

Please let me know!!

Thank you.

0 Comments

Denice

Products

2 Answers

Answer by Ryan Livingston on 17 Jan 2013
 web(url, '-browser')

opens the page in the system browser. You can also run arbitrary DOS commands using the DOS function:

 dos('explorer http://www.google.com/')
 dos(['explorer ' url])

Check here:

http://www.mathworks.com/support/solutions/en/data/1-19P95/?solution=1-19P95

for more info.

0 Comments

Ryan Livingston
Answer by Jan Simon on 17 Jan 2013

It will depend on the browser. E.g.:

system('firefox.exe -new-window www.mozilla.com')
system('firefox.exe -new-window www.google.com')
system('firefox.exe -new-window www.mathworks.com')

I'm not sure, if the Internet Explorer's "-noframemerging" does what you want.

0 Comments

Jan Simon

Contact us