[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.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Select a Web Site
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: United States.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.