Using the Command Window

The Compose Command Window allows you to execute OML commands interactively.

  1. To display the content of a variable, use the disp() statement.
    > A = [1,2,3];
    > disp(A)
    [Matrix] 1 x 3
     1    2   3
  2. Use the additional options for managing commands:
    • Recall previous commands by using the up and down arrow keys.
    • Drag commands from the Command History window to execute them.
    • Double-click commands in the Command History window to execute them.