Views Browser

The Views browser contains two tabs to display the plots and variable editors.

Each tab contains a Navigator bar.

Figure 1. Navigator Bar in Plots Tab
Navigator Bar in Plots Tab
To select the current item, use the drop-down menu next to each navigation node or the tree browser.
Figure 2. Drop-Down Menu in Plots Tab
Drop-Down Menu in Plots Tab
Figure 3. Tree Browser in Plots Tab
Tree Browser in Plots Tab

Use the arrows Back and Forward arrows to go back or forward on the list of previous selections.

Use the float plot window Float plot window icon icon to detach a figure or variable editor and the Close Close 'X' icon icon to hide it.

To detach the tabs from the Views browser, right-click on the tab name and select the Undock option.
Figure 4. Undock Option for Views Browser
Undock Option for Views Browser
Figure 5. Variables Tab Undocked from Views Browser
Variables Tab Undocked from Views Browser

To hide the tab, right-click and select Close. To show the respective tab again, select a figure or a variable on the Project browser by double-clicking or right-click and select Show.

Plots Tab

The Plots tab contains both OML and Python plots

Note: In Python plots, docking is only supported for Matplotlib plots.
Figure 6. Plots Tab of Views Browser
Views Browser with Plots and Variables Tabs

Variables Tab

The Variables tab contains OML and Python variables.

Grid/Spreadsheet View

The Variables tab is a spreadsheet-like grid view that lets you easily view OML and Python variables interactively during a session.

To launch the Variables tab, double-click the variable name in the Variable Browser. The variable data is displayed in a table format.
Figure 7. Open the Variables Tab from the OML Variables Browser


Each variable is displayed in its own grid, and each grid is listed in the Project Browser, named after the variable itself.

Figure 8. Variable Grids in Project Browser


To delete or hide the grid view, right-click on the variable in the Project Browser and select Hide or Delete.

The Variables tab supports strings, numeric arrays, one-dimensional and two-dimensional matrices, cell arrays, and struct arrays, providing an Excel-like viewing experience.

Right-click on matrix data in the Variables tab to perform the following operations: Select All, Cut, Copy, Paste, Save selection, Save matrix, and Plot.

To navigate through nested cell arrays and struct data types, double-click to view their values.

Nested child elements are represented as variable name <size>. For example, if cell array t at (1,3) has a child element containing a matrix of size 3x3, the name of the child element is t(1,3)<matrix (3,3)> where:
  • t(1,3) is the cell array element.
  • <matrix (3,3)> is the data type and size of that element.

Navigation and Inspection: OML Data Types

String data type
Double-click on the name of the cell variable to display the contents in text view.
Double-click on a string and type to modify it and provide real-time updates to the variable.
Figure 9. Double-Click on a String and Modify




Numeric/Matrix Data Type
For a very small matrix, the contents are visible in the Variable Browser. However, for a larger matrix, the size is displayed in the Variables tab instead of in the Variable Browser.
To view and edit all matrix content, double-click on its name in the Variable Browser.
You can edit values directly for matrices. Double-click and type in any filled cell in the grid view, which provides real-time updates to the variable.
Figure 10. Edit Matrix Cell in Variables Tab


Cell Data Type
Double-click on the name of the cell variable to display the contents in a spreadsheet-like view.
Each element in the cell data type is represented in the cell in the grid view.
Simple data types like strings and matrices in the cell data type are displayed directly.
Figure 11. Simple Data Types in Variables Tab


For nested cells, double-click on each element for further exploration.
Figure 12. Double-Click on a Nested Cell




Structure Data Type
Double-click on the name of the struct variable to display the contents in a spreadsheet-like view.
Displays struct fields in rows and their values.
Simple data types like strings and matrices within struct fields are displayed directly.
Figure 13. Struct in Variables Tab


For nested structs, the Views Browser allows for further exploration by double-clicking on the field.
The Views Browser displays arrays of structs as arrays. You can double-click on each array element for further exploration.
Figure 14. Array in Variables Tab


Figure 15. Double-Clicking on the Nested Field Value


Navigation and Inspection: Python Data Types

String Data Type
Double-click on the name of the cell variable to display the contents in text view.
List Data Type
Double-click on the name of the list variable to display the contents in a spreadsheet-like view.
Each element in the list data type is represented in the list in the grid view.
Simple data types like strings and numeric (int/float) in the list data type are displayed directly.
For a nested list, the Views Browser allows for further exploration by double-clicking on each element.
Dictionary Data Type
Double-click on the name of the dict variable to display the contents in a spreadsheet-like view.
Displays dict fields in rows and their values.
Simple data types like strings and numeric (int/float) in dict fields are displayed directly.
For a nested dictionary, the Views Browser allows for further exploration by double-clicking on the field.
The Views Browser displays arrays of structs as arrays. You can double-click on each array element for further exploration.