FUNCTION REFERENCE

pde.FEMesh.findNodes

Find node indices in a pde.FEMesh matching a geometric query.

Find node indices in a pde.FEMesh matching a geometric query.

Syntax

ids = findNodes(mesh, 'box', xlim, ylim)

Syntax

ids = mesh.findNodes('radius', center, r)

Syntax

ids = mesh.findNodes('nearest', point)

Syntax

ids = mesh.findNodes('region', 'Edge', edges)

Returns 1-based node indices in mesh matching the box, radius, nearest-point or geometry-region query.

Example

m = createpde; geometryFromEdges(m, decsg([3;4;0;1;1;0;0;0;1;1])); mesh = generateMesh(m, 'Hmax', 0.5); ~isempty(mesh.findNodes('box', [0 0.5], [0 0.5]))   % true

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.