This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Locate active PDE coefficients


CA = findCoefficients(coeffs,RegionType,RegionID)



CA = findCoefficients(coeffs,RegionType,RegionID) returns the active coefficient assignment CA for the coefficients in the specified region.


collapse all

Create a PDE model that has a few subdomains.

model = createpde();
axis equal

Set coefficients on each pair of regions.


Check the coefficient specification for region 1.

coeffs = model.EquationCoefficients;
ca = findCoefficients(coeffs,'Face',1)
ca = 
  CoefficientAssignment with properties:

    RegionType: 'face'
      RegionID: [1 3]
             m: 0
             d: 0
             c: 13
             a: 0
             f: 2

Input Arguments

collapse all

Model coefficients, specified as the EquationCoefficients property of a PDE model. Coefficients can be complex numbers.

Example: model.EquationCoefficients

Geometric region type, specified as 'Face' for a 2-D model, or 'Cell' for a 3-D model.

Example: ca = findCoefficients(coeffs,'Face',[1,3])

Data Types: char | string

Region ID, specified as a vector of positive integers. View the subdomain labels for a 2-D model using pdegplot(model,'FaceLabels','on'). Currently, there are no subdomains for 3-D models, so the only acceptable value for a 3-D model is 1.

Example: ca = findCoefficients(coeffs,'Face',[1,3])

Data Types: double

Output Arguments

collapse all

Coefficient assignment, returned as a CoefficientAssignment Properties object.

Introduced in R2016a