Partial Differential Equation Toolbox | ![]() ![]() |
Plot Menu
Parameters . . .
Parameters . . . opens a dialog box containing options controlling the plotting and visualization.
The upper part of the dialog box contains four columns:
movie
function.
A colorbar is added to the plots to map the colors in the plot to the magnitude of the property that is represented using color or contour lines.
u
, its derivatives ux
and uy
, the x and y components of c · cux
and cuy
, and x
and y
are all available in the local workspace. You enter the expression into the edit box to the right of the Property pop-up menu in the User entry column.
[px; py]
returning a 2-by-ntri matrix of data defined on the triangles of the current triangular mesh (ntri is the number of triangles in the current mesh). The solution u
, its derivatives ux
and uy
, the x and y components of c · cux
and cuy
, and x
and y
are all available in the local workspace. Data defined on the nodes is interpolated to triangle centers. You enter the expression into the edit field to the right of the Property pop-up menu in the User entry column.
For the generic system case, the properties available for visualization using color, contour lines, or z-height are u, v, abs(u,v), and a user entry. For visualization using arrows or a deformed mesh, you can choose (u,v) or a user entry. For applications in structural mechanics, u and v are the x- and y-displacements, respectively.
For the visualization options in the other application modes, see Application Modes. Note that the variables available in the local workspace for a user entered expression are the same for all scalar and system modes (the solution is always referred to as u and, in the system case, v
).
A total of three properties of the solution -- two scalar properties and one vector field -- can be visualized simultaneously. If the Height (3-D plot) option is turned off, the solution plot is a 2-D plot and is plotted in the main axes of the pdetool
GUI. If the Height (3-D plot) option is used, the solution plot is a 3-D plot in a separate figure window. If possible, the 3-D plot uses an existing figure window. If you would like to plot in a new figure window, simply type figure
at the MATLAB command line.
Additional Plot Control Options
In the middle of the dialog box are a number of additional plot control options:
15
or 20
can be entered. Alternatively, you can enter a MATLAB vector of levels. The curves of the contour plot are then drawn at those levels. The default is 20 contour level curves.
cool
, gray
, bone
, pink
, copper
, hot
, jet
, hsv
, and prism
.
For the parabolic and hyperbolic PDEs, the bottom right part of the dialog box contains an additional option:
Time for plot. A pop-up menu allows you to select which of the solutions to plot by selecting the corresponding time. By default, the last solution is plotted.
Also, the Animation plot type is enabled. In its property field you find an Options . . . button. If you press it, an additional dialog box appears. It contains parameters that control the animation:
For eigenvalue problems, the bottom right part of the dialog box contains a pop-up menu with all eigenvalues. The plotted solution is the eigenvector associated with the selected eigenvalue. By default, the smallest eigenvalue is selected.
You can rotate the 3-D plots by clicking the plot and, while keeping the mouse button down, moving the mouse. For guidance, a surrounding box appears. When you release the mouse, the plot is redrawn using the new viewpoint. Initially, the solution is plotted using -37.5 degrees horizontal rotation and 30 degrees elevation.
If you click the Plot button, the solution is plotted immediately using the current plot setup. If there is no current solution available, the PDE is first solved. The new solution is then plotted. The dialog box remains on the screen.
If you click the Done button, the dialog box is closed. The current setup is saved but no additional plotting takes place.
If you click the Cancel button, the dialog box is closed. The setup remains unchanged since the last plot.
![]() | Solve Menu | Window Menu | ![]() |