cns_trace
Starting with a cell (or cells) in a specific layer, we find all cells in a target layer that can be reached by following a specific sequence of layer-layer jumps.
[j1, j2, ...] = cns_trace(m, z, path, i1, i2, ...) |
m
z
path
[-3 4]
means a backward jump to layer 3 and then a forward jump to layer 4; the output cells will be in layer 4.
i1, i2, ...
z
. You can specify these indices using from 1 to N dimensions, where N is the dimensionality of layer z
(see cns_iconv
for an explanation of N-D indices). i1
will contain index 1 for all starting cells, i2
will contain index 2 for all starting cells, etc.
j1, j2, ...
j1
will contain index 1 for all result cells, j2
will contain index 2 for all result cells, etc.