Documentation Center

  • Trial Software
  • Product Updates

Display Hyperlinks in the Command Window

Creating Hyperlinks to Web Pages

When creating a hyperlink to a Web page, append a full hypertext string on a single line as input to the disp or fprintf command. For example, the following command:

disp('<a href = "http://www.mathworks.com">The MathWorks Web Site</a>')

displays the following hyperlink in the Command Window:

The MathWorks Web Site

When you click this hyperlink, a MATLAB® Web browser opens and displays the requested page.

Transferring Files Using FTP

To create a link to an FTP site, enter the site address as input to the disp command as follows:

disp('<a href = "ftp://ftp.mathworks.com">The MathWorks FTP Site</a>')

This command displays the following as a link in the Command Window:

The MathWorks FTP Site

When you click the link, a MATLAB browser opens and displays the requested FTP site.

Was this topic helpful?