Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

Using Web Browsers in MATLAB

About Web Browsers in MATLAB

From MATLAB, Web sites and documents can display in any of the following browsers:

MATLAB uses the different browsers to display different types of information:

Image of MATLAB Web Browser containing a MATLAB program file published to HTML.

MATLAB Web and Help Browsers

Because the MATLAB Web and Help browsers are desktop tools, you can perform desktop operations on them, such as docking the tools in the desktop. For more information, see Desktop.

The MATLAB Web and Help browsers may not support all the features that a particular Web site or HTML page uses. For example, the MATLAB Web Browser does not display .bmp (bitmap) image files. Instead use .gif or .jpeg formats for image files in HTML pages.

System Browser

The system browser that MATLAB uses depends on your platform:

Displaying Pages in Web Browsers

To display an HTML document in the MATLAB Web Browser, double-click the document name in the Current Folder browser.

To display a Web page or any file type in the MATLAB Web Browser:

  1. Select Desktop > Web Browser.

    An empty MATLAB Web browser window opens.

  2. Type a URL or full path to a filename in the Location field.

To open a link to another page in a separate MATLAB Web browser window, click the middle mouse button, if you have one.

To open any type of document in any type of Web browser MATLAB supports, use the web function. Specify a URL or file to display, and the type of browser to use.

Web Preferences

Use Web preferences to specify characteristics related to accessing the Internet:

Specifying Proxy Server Settings

If your network uses a firewall or another method of protection that restricts Internet access, provide information about your proxy server to MATLAB.

To specify the proxy server settings:

  1. Select File > Preferences > Web.

  2. Select the Use a proxy server to connect to the Internet check box:

  3. Specify values for Proxy host and Proxy port. Examples of acceptable formats for the host are: 172.16.10.8 and ourproxy. For the port, enter only an integer, such as 22. If you do not know the values for your proxy server, ask your system or network administrator for the information.

    If your proxy server requires a user name and password, select the Use a proxy with authentication check box. Then enter your proxy user name and password.

      Note   MATLAB stores the password without encryption in your matlab.prf file.

  4. Ensure that your settings work by clicking the Test connection button.

    MATLAB attempts to connect to http://www.mathworks.com:

    • ser.xml;

      If MATLAB can access the Internet, Success! appears next to the button.

    • If MATLAB cannot access the Internet, Failed! appears next to the button. Correct the values you entered and try again. If you still cannot connect, try using the values you used when you authenticated your MATLAB license.

  5. Click OK to accept the changes.

Image of MATLAB Web preferences panel showing sample values for fields.

After specifying the preference, you can access the Internet from MATLAB through your proxy server.

Limitations of Specifying Proxy Server Settings.  

Specifying the System Browser for UNIX Platforms

For background information, see System Browser. To specify the system browser:

  1. Select File > Preferences > Web. The Preferences dialog box opens to the Web pane.

      Note   The System Web browser preference is for UNIX platforms (excluding Macintosh) and does not appear in the preferences pane for other platforms.

  2. Under System Web browser, in the Command field, specify the system command to open the browser, for example, opera, which opens the Opera Web browser.

  3. Add options for opening your system browser in the Options field. For example, geometry 1064x860 specifies the size of the window for Opera.

  4. Click OK.

Specifying Fonts for the MATLAB Web Browser

To modify the MATLAB Web Browser font, select File > Preferences > Fonts. The Web browser uses the font settings that you specify for the HTML Proportional Text tool. For more information about setting fonts, click the Help button in the preference pane for Fonts.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS