cns_center

Returns the position in common coordinate space of a cell along a particular dimension. This is a floating point number.

Syntax

p = cns_center(m, z, dim, c)
m
A model structure.

z
The layer number.

dim
The dimension name or number.

c
Index (along this dimension) of the cell in layer z.

p
The resulting common coordinate position.

Notes

The equivalent kernel macro is type_dim_CENTER.