6.22.1   Inspecting Tuples

Control variables containing tuples are displayed in a tabular format (see figure 6.84). This is especially useful for the inspection of tuples with a large number of values.

Figure 6.84: Control variable inspection.

  • Variable names
  • List of tuple values
  • Statistics - select from context menu
  • In addition to the tuple values, some statistical data can be displayed:

    You can select, which statistical data is displayed by right-clicking the statistics table and selecting the corresponding entries.

    The selected values of an inspection window can be copied to the system clipboard using the context menu or pressing Ctrl+C. The columns of the copied values are separated by tabs and the rows are separated by newlines, or presented as an HTML table (depending on the application the values are pasted into).

    Editing Variable Values

    To change a variable value, click into the corresponding cell and type the new value followed by Return.

    You enter... it becomes
    text 'text' (string)
    'text' 'text' (string)
    42 42 (integer)
    '42 '42' (string)
    0.7 0.7 (real)
    2e2 200.0 (real)

    Depending on the variable type, only certain value types can be allowed, for example, matrix variables (see below) contain only real values.

    You can also add new elements to a tuple: Instead of entering a single value, enter a list of values enclosed in square brackets (tuple notation).

    For example:

    Variable Inspect
      1
      2      -> [2,22,222]
      3
    

    results in the following tuple:

      1
      2
      22
      222
      3
    

    Do not forget to include the original value (2) if you want to extend the tuple.

    Additional values can be appended at the end of the tuple by entering them into the column labeled +.

    To delete a variable value, press Delete or enter an empty tuple:

    Variable Inspect
      1
      2      -> []
      3
    

    results in the following tuple:

      1
      3