Using Context-Sensitive Menus for DynamicSystems - Maple Programming Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Science and Engineering : Dynamic Systems : DynamicSystems/ContextMenus

Using Context-Sensitive Menus for DynamicSystems



Accessing the Context Sensitive Menu




The DynamicSystems Context Menus gives you the ability to access almost all of the commands in the DynamicSystems package with the click of a mouse. The DynamicSystems Context Menus will be automatically activated when the DynamicSystems package is loaded into the workspace.


The DynamicSystems context-sensitive menu consists of four submenus: System Creation, Conversion, Manipulation and Plotting. Using these submenus, you can create DynamicSystems System Objects, convert between different DynamicSystems equation and matrix representations, analyze the dynamics of a system, and obtain plots of the frequency, impulse and system response characteristics to a wide variety of inputs.

Accessing the Context Sensitive Menu


To use this feature, you must load the DynamicSystems package by executing with(DynamicSystems).


You can access the context-sensitive menu for any of the following four inputs: continuous and discrete differential equations, state space Matrices, continuous and discrete transfer functions, and zero-pole-gain Matrices. The inputs must be defined in the following manner to access the context-sensitive menu:

Differential Equations: list of equation(s)

State Space Matrices: sequence of 4 Matrices

Transfer Functions: Matrix of one or several rational polynomials

Zero-Pole-Gain Matrices: sequence of 3 Matrices


Right-click on one of these objects and from the context-sensitive menu, select DynamicSystems. There are four submenus.

System Creation


The System Creation submenu allows you to create DynamicSystems System Objects from the different DynamicSystems representations. Once created, the System Objects can be used with any of the commands found within the DynamicSystems package.

Conversions submenu


The Conversions submenu provides you with a mechanism to convert between the four DynamicSystems representations mentioned above, namely Differential Equation, State Space Matrices, Transfer Function, and Zero-Pole-Gain Matrices.

Manipulations submenu


The Manipulations submenu permits you to conduct analysis operations on all the DynamicSystems representations.


The following analysis operations are available from the context-sensitive menu:


Characteristic Polynomial

Controllability Matrix







Gain Margin

Phase Margin



Observability Matrix




Note: The majority of these commands are only available for State Space inputs.

Plots submenu


The Plots submenu enables you to explore the underlying system dynamics using different plotting commands.


The plotting operations that are available from the context-sensitive menu are listed below:


Bode Plot

Impulse Response Plot



Magnitude Plot

Phase Plot



Nichols Plot

Nyquist Plot



Response Plot

Root Contour Plot



Root Locus Plot

Zero Pole Plot



When creating a Response Plot, you can select from the following input signals:


















1. To begin, load the DynamicSystems package.


Conversion Example

2. Enter 1s+1.




3. Right-click (Control-click on Macintosh) on the expression. From the context menu, select DynamicSystems>Conversions>Transfer Function to Differential Equation The result will be:


Plotting Example

4. Enter 1s+1.




5. Right-click on 1s+1, and from the context menu, select DynamicSystems>Plots>Phase Plot.

See Also

Context-sensitive menus



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