Using the Variable Manager
Through the Variable Manager you can display all variables used in your current Maple session or select a subset of those variables for view. You can also view values assigned to these variables through the palette. For more information on the Variable Manager, see Variable Manager.
Displaying Assigned Values
Hiding a Variable
Filtering Variables Displayed in the Variable Manager
Unassigning Values from Variables
Manually Adding Variables to the Variable Manager
Saving and Sharing Variables in a Maple Workbook
Restoring a Workbook Variable to its Saved State
Deleting Workbook Variables
To display the value assigned to a variable:
In the Variable Manager, select a variable.
The value assigned to the variable is displayed in the View window. To launch the View window, do one of the following:
Double-click on the variable.
At the bottom left corner of the palette window, click the View
Right-click, then select View.
To hide a variable in the Variable Manager:
To hide the variable, do one of the following:
Right-click, then select Hide.
At the bottom of the palette window, click the Hide
Through the Variable Manager you can choose to filter the list of all the active variables in your Maple session, so that only a portion of these variables are visible. To filter variables in the Variable Manager:
At the bottom of the palette window, click the Filter
In the Show Variables window, clear the boxes corresponding to the variables you want to hide.
To unassign a value from a variable:
In the Variable Manager, right-click on a variable.
Select Unassign. The value is no longer assigned to the variable in the current Maple worksheet.
Global variables assigned within a procedure and variables that are passed by reference to a procedure, must be added manually to the Variable Manager.
To manually add a variable:
Execute the procedure that contains the variable you want to add to the Variable Manager.
Right-click anywhere in the Variable Manager palette.
Type the name of the variable you want to add and click OK.
Variables displayed in the Variable Manager can be saved to the Maple workbook.
Variables that are saved to the workbook are shared between all the worksheets in the workbook and can be retrieved in the saved state without re-executing the computation.
To save a variable:
In the Variable Manager, right-click on the variable you want to save to the workbook.
Select Save. The variable is saved in its current state. The saved variable icon (
) indicates a saved variable.
Tip: If you encounter an error message that the workbook is readonly, you may need to save a copy of the workbook before saving or deleting workbook variables.
After a saved variable is changed in the worksheet, you can restore its value to its saved state.
To return a variable to its saved state:
In the Variable Manager, right-click on the variable you want to restore.
Select Restore to Saved Value. The variable is unloaded from the current Maple session.
Note: You can also return a variable to its saved state using the kernelopts(unread) command.
You can delete a saved variable from the workbook using the Variable Manager.
To delete a saved variable:
In the Variable Manager, right-click on the variable you want to delete.
Select Delete. To delete all saved variables, select Delete All.
The variable, or variables, selected in the previous step are no longer stored in the workbook. The variable and database icon disappear from the Variable Manager.
Note: If the variable has been accessed by the kernel (for example an assignment such as a:=6) then the variable will not be removed from the Variables Manager.
The Variable Manager is updated automatically when you switch tabs in a Maple session. To prevent the automatic update, collapse the palette.
Variables in the startup code will appear, by default, in the Variable Manager.
If you are writing Maple programs in the worksheet, you can use the Variable Manager to perform a visual inspection of the values assigned to the variables in your code as part of your debugging.
Variables assigned as a side effect of calling a procedure may not appear in the Variable Manager.
Download Help Document
What kind of issue would you like to report? (Optional)