[K,M,F]
= assema(model,c,a,f)
assembles the stiffness matrix K, the mass matrix
M, and the load vector F using the mesh
contained in model, and the PDE coefficients
c, a, and f.
PDE coefficient, specified as a scalar, matrix, character vector, character array, string
scalar, string vector, or coefficient function. c
represents the c coefficient in the scalar PDE
or in the system of PDEs
Example: 'cosh(x+y.^2)'
Data Types: double | char | string | function_handle Complex Number Support: Yes
PDE coefficient, specified as a scalar, matrix, character vector, character array, string
scalar, string vector, or coefficient function. a represents the
a coefficient in the scalar PDE
or in the system of PDEs
Example: 2*eye(3)
Data Types: double | char | string | function_handle Complex Number Support: Yes
PDE coefficient, specified as a scalar, matrix, character vector, character array, string
scalar, string vector, or coefficient function. f
represents the f coefficient in the scalar PDE
or in the system of PDEs
Example: char('sin(x)';'cos(y)';'tan(z)')
Data Types: double | char | string | function_handle Complex Number Support: Yes
Mesh points, specified as a 2-by-Np matrix of points, where
Np is the number of points in the mesh. For a description of the
(p,e,t) matrices, see Mesh Data as [p,e,t] Triples.
Mesh triangles, specified as a 4-by-Nt matrix of
triangles, where Nt is the number of triangles in the mesh. For a
description of the (p,e,t)
matrices, see Mesh Data as [p,e,t] Triples.