MATLAB Examples

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 .

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.

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

Use a geometry function to create 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

Choose your country 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 location from the following list:

See all countries