Using the Variable Manager - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Create Maple Worksheets : Enter Expressions : Enter Expressions Using Palettes : worksheet/expressions/UsingVariableManager

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 Variables in a Maple Workbook

Restoring a Workbook Variable to its Saved State

Deleting Workbook Variables

Notes

See Also

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

3. 

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 Variables in a Maple Workbook

 

Variables displayed in the Variable Manager can be saved to the Maple workbook.

Once, variables are saved to the workbook, they 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

3. 

The variable is saved in its current state

 

Restoring a Workbook Variable to its Saved State

 

A saved variable that is changed in the worksheet, can have its value restored 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

3. 

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 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 deleted from the workbook.

 

 

 

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.

See Also

assignment, Show Palettes, unassign, Variable Manager


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam