Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Solution Visualization and Interpolation

Plot, animate, and interpolate PDE solutions and their gradients

Access solutions and their gradients at the mesh nodes or interpolate them to arbitrary points within the domain. Visualize solutions and gradients by creating surface, contour, and arrow (quiver) plots with or without mesh display. For command-line plotting, see Plot 2-D Solutions and Their Gradients and Plot 3-D Solutions and Their Gradients.

For 2-D PDEs, you also can use the PDE Modeler app. The app lets you plot three different solution properties at the same time, using color, height, and vector field plots. You can create plots in the app itself or in separate figures. See Plot the Solution in the PDE Modeler App.

You also can create an animated movie of the solution. See Wave Equation.

Functions

evaluateGradientEvaluate gradients of PDE solutions at arbitrary points
evaluateCGradientEvaluate flux of PDE solution
interpolateSolutionInterpolate PDE solution to arbitrary points
pdeplotPlot solution or mesh for 2-D geometry
pdeplot3DPlot solution or surface mesh for 3-D geometry
createPDEResultsCreate solution object
evaluateInterpolate data to selected locations
pdecontShorthand command for contour plot
pdecgradFlux of PDE solution
pdegradGradient of PDE solution
pdesurfShorthand command for surface plot

Using Objects

EigenResultsPDE eigenvalue solution and derived quantities
StationaryResultsTime-independent PDE solution and derived quantities
TimeDependentResultsTtime-dependent PDE solution and derived quantities
pdeInterpolantInterpolant for nodal data to selected locations

Topics

Programmatic Workflow

Plot 2-D Solutions and Their Gradients

Visualize a 2-D PDE solution and its gradient at nodal and arbitrary locations.

Plot 3-D Solutions and Their Gradients

Visualize a 3-D PDE solution and its gradient at nodal and arbitrary locations.

Dimensions of Solutions, Gradients, and Fluxes

Dimensions of stationary, time-dependent, and eigenvalue results at mesh nodes and arbitrary locations.

PDE Modeler App Workflow

Plot the Solution in the PDE Modeler App

Interactively plot the solution of a 2-D PDE or other physical properties calculated using the solution.

Was this topic helpful?