nodePositionGrid
Syntax
Description
The nodePositionGrid function generates node positions in a
grid or within a given polygon. It can divide a specified area into a grid of rectangular
cells, placing a serving node such as a next generation NodeB (gNB), access point (AP), or
Central node in each cell and returning a vector of polyshape objects,
with each object representing a cell. You can then use this vector of polyshape objects
as an input to the nodePositionGrid function again to place served nodes
such as user equipment (UE) node, Station node, and Peripheral node within each
cell.
Generate Node Positions in Grid
[
generates a node position at the center of a rectangle with the specified dimensions
nodePosition,polygonShapeOut] = nodePositionGrid(boundaryDimension)boundaryDimension. The rectangle is centered at the origin.
[
sets the node position configuration parameters using one or more optional name-value
arguments. nodePosition,polygonShapeOut] = nodePositionGrid(boundaryDimension,Name=Value)PlacementType="center" generates node positions at the
center of each cell of the grid within the specified boundary.
Generate Node Positions in Polygonal Area
[
generates a node position within the rectangular boundary specified by the polygon
nodePosition,polygonShapeOut] = nodePositionGrid(polygonShapeIn)polygonShapeIn.
[sets
the node position configuration parameters using one or more optional name-value
arguments. For example, nodePosition,polygonShapeOut] = nodePositionGrid(polygonShapeIn,Name=Value)NumNodesPerCell=2 specifies to place two nodes
within the specified boundary.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Version History
Introduced in R2026a

