Using the Variable Manager - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


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

Notes

Displaying Assigned Values

 

To display the value assigned to a variable:

 

1. 

In the Variable Manager, select a variable.

2. 

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   button.

• 

Right-click, then select View.

 

Hiding a Variable

 

To hide a variable in the Variable Manager:

 

1. 

In the Variable Manager, select a variable.

2. 

To hide the variable, do one of the following:

• 

Right-click, then select Hide.

• 

At the bottom of the palette window, click the Hide    button.

 

Filtering Variables Displayed in the Variable Manager

 

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:

 

1. 

At the bottom of the palette window, click the Filter   button.

2. 

In the Show Variables window, clear the boxes corresponding to the variables you want to hide.

3. 

Click OK.

 

Unassigning Values from Variables

 

To unassign a value from a variable:

 

1. 

In the Variable Manager, right-click on a variable.

2. 

Select Unassign. The value is no longer assigned to the variable in the current Maple worksheet.

 

Manually Adding Variables to the Variable Manager

 

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:

 

1. 

Execute the procedure that contains the variable you want to add to the Variable Manager.

2. 

Right-click anywhere in the Variable Manager palette.

3. 

Select Add...

4. 

Type the name of the variable you want to add and click OK.

 

Saving and Sharing Variables in a Maple Workbook

 

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:

1. 

In the Variable Manager, right-click on the variable you want to save to the workbook.

2. 

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.

Restoring a Workbook Variable to its Saved State

 

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:

1. 

In the Variable Manager, right-click on the variable you want to restore.

2. 

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.

Deleting Workbook Variables

 

You can delete a saved variable from the workbook using the Variable Manager.

 

To delete a saved variable:

1. 

In the Variable Manager, right-click on the variable you want to delete.

2. 

Select Delete. To delete all saved variables, select Delete All.

3. 

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.

 

Notes

• 

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.

See Also

assignment

Show Palettes

unassign

Variable Manager