Quantcast

Documentation Center

  • Trial Software
  • Product Updates

connector

Connect to mobile device

Syntax

connector on
connector on password
connector ('on','port',portnumber)
connector off

Description

connector on enables MATLAB® Connector™ software on your machine (localhost), allowing you to access your MATLAB session from a mobile device such as an iPhone, iPod touch, or Android device. If you have not defined a password, the connector issues a prompt to do so.

connector on password enables the connector and sets or changes the password. Passwords can contain letters and numbers, and must contain at least five characters. The maximum length is 32 characters. MATLAB stores your password with your preferences.

connector ('on','port',portnumber) enables the connector and sets the port if the default port, 31415, is not available. If you are not using the default port, you must set it every time you start the connector.

connector off disables the connector.

Examples

Enable the connector and set the password to my_password_1:

connector on my_password_1

More About

expand all

Tips

  • To test the connector, open a Web browser and navigate to http://localhost:port. If you did not change the port, use the default: http://localhost:31415.

  • To enable the connector anytime MATLAB is running on your computer, modify or create startup.m and finish.m files to turn the connector on and off. Define startup.m in your startup folder, and finish.m anywhere on the MATLAB search path.

Was this topic helpful?