MATLAB Examples

Analyze a 3-D mechanical part under an applied load using finite element analysis (FEA) and determine the maximal deflection.

Create a cardioid geometry using four distinct techniques. The techniques are ways to parametrize your geometry using arc length calculations. The cardioid satisfies the equation .

Solve the wave equation using the solvepde function.

Solve the heat equation with a temperature-dependent thermal conductivity.

A PDE model stores initial conditions in its InitialConditions property. Suppose model is the name of your model. Obtain the initial conditions:

Import a 3-D mesh into a PDE model. Importing a mesh creates the corresponding geometry in the model.

A PDE model stores coefficients in its EquationCoefficients property. Suppose model is the name of your model. Obtain the coefficients:

A PDE model stores boundary conditions in its BoundaryConditions property. To obtain the boundary conditions stored in the PDE model called model , use this syntax:

There are two types of boundaries:

Create a polygonal geometry using the MATLAB polyshape function. Then use the triangulated representation of the geometry as an input mesh for the geometryFromMesh function.

The following figure shows how the direction of parameter increase relates to label numbering. The arrows in the figure show the directions of increasing parameter values. The black dots

Write a geometry function for creating a circular region. Parametrize a circle with radius 1 centered at the origin (0,0), as follows:

Create a geometry file for a region with subdomains and a hole. It uses the "Analytic Arc Length" section of the "Arc Length Calculations for a Geometry Function" example and a variant of the

The generateMesh function creates a triangular mesh for a 2-D geometry and a tetrahedral mesh for a 3-D geometry. By default, the mesh generator uses internal algorithms to choose suitable

Include additional parameters into a function for creating a 2-D geometry.

Partial Differential Equation Toolbox™ allows you to find mesh elements and nodes by their geometric location or proximity to a particular point or node. This example works with a group of

Partial Differential Equation Toolbox™ uses the finite element method to solve PDE problems. This method discretizes a geometric domain into a collection of simple shapes that make up a

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a web site from the following list:

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Contact your local office