File Exchange

image thumbnail


version (11.4 KB) by Emmanuel Farhi
A Java Based Web Browser


Updated 03 Feb 2018

View License

webbrowser: basic web browser running from Matlab
Opens a simplistic web browser, built from Matlab/Java.
Can be used as replacement for the 'web' command in deployed applications.
Requires a running JVM.
This browser has very limited rendering capabilities. It does not support
JavaScript, and other 'modern' HTML extensions (flash, HTML5,...).
The browser has a display pane, a Home button, a Back button, an editable URL
field, and keeps track of the navigation history. Does not support proxy settings.
Also works within compiled Matlab applications.

webbrowser Opens an empty browser.
webbrowser(file) Display the specified file (full path or in the Matlab search path)
webbrowser(url) Opens a browser displaying the specified URL.
webbrowser(url,'system') tries first to open the web page with the system browser.

Copyright: Licensed under the BSD, version 1.1
E. Farhi, ILL, France <> Aug 2017,

Cite As

Emmanuel Farhi (2020). webbrowser(url) (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

The request to matlab.internal only works in recent Matlab releases. Also, It isn't available in standalone compiled apps. webbrowser works in all cases, even-though basic.


If you need more capabilities, try built-in browser based on Chromium:

w = matlab.internal.webwindow('')


handle properly url's with special characters.

updated screenshot

fixed opening with local file or directory

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux