cns_trace

Traces pathways through a network formed by explicit synapses.

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.

Syntax

[j1, j2, ...] = cns_trace(m, z, path, i1, i2, ...)
m
A model structure.

z
The layer number containing the starting cell(s).

path
A vector of layer numbers representing a sequence of jumps. A positive number represents a forward jump (pre-to-postsynaptic), and a negative number represents a backward jump (post-to-presynaptic). The (absolute value of) the last element is the target layer. For example, [-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, ...
Indices of one or more starting cells in layer 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, ...
Indices of the resulting cells in the target layer, represented using from 1 to M dimensions, determined by the number of outputs, where M is the dimensionality of the target layer. j1 will contain index 1 for all result cells, j2 will contain index 2 for all result cells, etc.