Main Content

Enter Commands

Entering Commands

To enter commands for MATLAB®, go to the menu and then tap Commands. Tap at the MATLAB cursor (>>) prompt to open the keyboard. Type MATLAB commands as you normally would.

For example, the Command Window and keyboard might appear like this.

  • On an iPad or iPhone:

    MATLAB Mobile command window on iOS

  • On an Android device:

    MATLAB Mobile command window on Android

MATLAB Mobile™ sends all commands to MATLAB running in the MathWorks® Cloud for evaluation. Your device does not perform any calculation or store any workspace variables locally.

Adjust Font Size

You can adjust the font size for the Command Window and Editor with either of the following techniques.

  • Use two fingers in the standard pinch-to-zoom gesture.

  • Configure in Settings:

    1. Tap the menu bar and then tap SettingsSettings gear icon.

    2. Then, move the Font Size slider.

Keyboards on Your Device

iOS Devices

The keyboard in the MATLAB Mobile application includes an extra row of commonly used special characters.

The up and down arrows scroll through your recent commands. The right and left arrows move the cursor within the command.

  • On an iPhone, the following special characters are included (swipe left to scroll through the display):

    Special characters on keyboard for iPhone

  • On an iPad, the following special characters are included:

    Special characters on keyboard for iPad

Android Devices

The MATLAB Mobile Command Window on Android devices offers you the option of using the device manufacturer's keyboard, or a MATLAB keyboard. With the MATLAB keyboard enabled and selected, the Command Window appears like this:

MATLAB keyboard on Android

The MATLAB keyboard on an Android device includes the following special characters:

Android MATLAB keyboard special characters

Enable and Select the MATLAB Keyboard.  Use the following steps to access the MATLAB keyboard.

  1. Tap menu and then tap Settings.

  2. In Keyboard Settings, tap MATLAB Keyboard.

  3. Tap Enable MATLAB Keyboard to enable. Then, under Manage Keyboards, turn on MATLAB Keyboard using the toggle switch. Tap OK when prompted. Enabling is a one-time procedure that does not need repeating.

  4. Return to the previous screen. Tap Select MATLAB Keyboard and then, under Select keyboard, tap MATLAB Keyboard.

Note

This action turns on the MATLAB keyboard for all operations on your device, including MATLAB Mobile.

Select Other Keyboard.  To use some other keyboard, such as the device standard keyboard, instead of the MATLAB keyboard:

  1. Tap the menu and then tap Settings.

  2. In Keyboard Settings, tap MATLAB Keyboard.

  3. Tap Select MATLAB Keyboard to deselect it. Then, in the Select keyboard dialog, tap an alternative keyboard, such as the one provided by your manufacturer.

    This action turns off the MATLAB keyboard for all operations on your device, including MATLAB Mobile.

    A keyboard selection icon might also be available in other locations on your device.

View Workspace and Variables

The Workspace Browser and Variable Editor in MATLAB Mobile allow you to view the workspace contents, and to view and edit variables in the workspace.

To open the Workspace Browser, tap the browser icon in the app. The icon displays a red dot to indicate changes in workspace variable values: .

The general behavior of the Workspace Browser is similar to desktop MATLAB, as described in Create and Edit Variables. (However, some variable editing options in desktop MATLAB are not available in MATLAB Mobile.)

  • Android Devices

    The Workspace Browser is displayed in the app, listing the variables in the workspace.

    Workspace browser display on Android

    Tap the back arrow to return to the MATLAB Commands window. Tap a variable name to access it in the Variable Editor.

  • iOS Devices

    When you tap the browser icon, a popover display shows the variables in the workspace.

    Workspace browser display on iOS

    You can dock or pin the browser by tapping the pin icon. The browser docks at the bottom of the app display.

    Docked workspace browser

    On an iPad, you can tap the angled pin icon to toggle the side of the screen on which the browser docks.

    Tap a variable name to access it in the Variable Editor.

In the Variable Editor, you can double tap a cell to add or change a value.

Variable editor display

You cannot create new variables in the Workspace Browser or Variable Editor, but in the editor you can add elements to arrays, tables, and so forth.

Limitations

MATLAB Mobile does not support:

  • MATLAB apps such as Curve Fitting or Signal Analysis

  • Creating graphical interfaces using App Designer or GUIDE

  • Simulink® graphical environment, but the sim command is supported at the MATLAB Mobile command line

  • Interaction with 3-D figures

Related Topics