Working With the Matrix Editor

With the matrix editor, you can open and edit a matrix, array or array of records. You can also plot a matrix. Note that you can load or save a matrix or an array, but not an array of records.


Before you begin: Edit a matrix or array component parameter.

Note that you can also edit matrix and array from other dialog boxes, for example with function calls.

  1. Click Edit after the matrix input field.

    The matrix editor appears.

    Tips: To add/remove rows or columns, use the Rows and Columns drop-down lists or the contextual menu of a cell.

  2. Modify a value with one of the following methods:

    • Edit directly a cell.
    • Right-click a cell and select Edit Text in the contextual menu to use a text editor.
    • Right-click a cell and select Insert Function Call in the contextual menu.

      A browser appears to let you insert a function call (for example, you can apply "sinus" on a value).

      For more information about function calls, refer to Calling Functions from a Library.

      Important: The original value in the cell is not removed when using Insert Function Call, you must remove it manually.

  3. To plot a matrix:

    1. Click Plot.

      A plot window is displayed.

      Tips:
      • Pause over the curve(s) to display in a tooltip value, local min. and max... To copy values from this tooltip, select Copy in the contextual menu of the plot.
      • To zoom in, click in the plot. To reset or zoom out, right-click in the plot window and select Rescale or Zoom out in the contextual menu.

    2. Click Table to plot column from 2 to N versus first column.

      Note: Vectors are plotted against index number.

    3. Click Map Rows to plot rows of a 2D map.

      The plotter displays rows from 2 to N versus first row, except the first element.

    4. Click Map Columns to plot columns of a 2D map.

      The plotter displays columns from 2 to N versus the first column, except the first element of each column.

  4. To load a matrix/array, click Load to load a Matlab 4 files (.mat) or comma separated values files (.csv and .txt).

    A browser appears to let you select and load the convenient file.

    Tip: To load large matrices/arrays, we advise you to use the DataFiles package instead of the matrix editor. For more about this package, refer to the documentation in the package.

    Note: You have to supply a table name if the file contains several matrices/arrays.

  5. To save a matrix/array, click Save.

    Note: You have to supply a table name if the file contains several matrices.

    A browser appears to let you select the convenient folder and enter a file name.

    Note: You have to supply a table name if the file contains several matrices/arrays.

  6. To end the matrix/array edition, select:

    • OK: to validate your modification and close the matrix editor.
    • Cancel: to cancel your modification and close the matrix editor.