cns_type

Calls a MATLAB method defined for a cell type.

Syntax

[out1, out2, ...] = cns_type(method, package, type, arg1, arg2, ...)
[out1, out2, ...] = cns_type(method, m      , type, arg1, arg2, ...)
[out1, out2, ...] = cns_type(method, m      , z   , arg1, arg2, ...)
[out1, out2, ...] = cns_type(method, m      , -g  , arg1, arg2, ...)
package
The package name. If this variant is used, the method will receive an empty model structure.

m
A model structure.

type
The type name. The method will be called with arguments (m, arg1, arg2, ...).

z
A layer number. The method will be called with arguments (m, z, arg1, arg2, ...).

g
A group number. The method will be called with arguments (m, g, arg1, arg2, ...). (Note the "-" sign in the cns_type call to distinguish g from a layer number. It is removed before calling the method itself.)

arg1, arg2, ...
Any additional inputs. Depends on the particular method.

out1, out2, ...
Any outputs. Depends on the particular method.