Main Content


Locate active PDE coefficients



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

Figure contains an axes object. The axes object contains 4 objects of type line, text.

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.

Version History

Introduced in R2016a