[ux,uy] = pdegrad(p,t,u)
returns the gradient of u evaluated at the center of each mesh
triangle.
The gradient is the same everywhere in the triangle interior because
pdegrad uses only linear basis functions. The derivatives at the
boundaries of the triangles can be discontinuous.
Mesh nodes, specified as a 2-by-Np matrix of nodes (points),
where Np is the number of nodes in the mesh. For details on the mesh
data representation, see initmesh.
Data Types: double
Mesh elements, specified as a 4-by-Nt matrix
of triangles, where Nt is the number of triangles in the mesh. For
details on the mesh data representation, see initmesh.
Data Types: double
Data at nodes, specified as a column vector.
For a PDE system of N equations and a mesh with
Np node points, the first Np values of
u describe the first component, the following Np
values of u describe the second component, and so on.
x-component of the gradient of u evaluated
at the center of each triangle, returned as a row vector for a scalar PDE or a matrix
for a system of PDEs. The number of elements in a row vector or columns in a matrix
corresponds to the number Nt of mesh triangles. For a PDE system of
N equations, each row i from 1 to
N contains .
y-component of the gradient of u evaluated
at the center of each triangle, returned as a row vector for a scalar PDE or a matrix
for a system of PDEs. The number of elements in a row vector or columns in a matrix
corresponds to the number Nt of mesh triangles. For a PDE system of
N equations, each row i from 1 to
N contains .
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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.