CTpass2.m
SYNTAX: [od,odl,fromsys,gains,er] = ...
CTpass2(tokidx,strtok,toklens,names,namelens,sysd)
PURPOSE: This works on the data between colons on a INPUT_TO_SYS,
determining which system the outputs come from (FROMSYS), which particular
outputs (OD), and the scalar gain (GAINS).
INPUT:
tokidx = index into array strtok defining token to work on(?)
strtok = array containing string tokens (parsed by CTpass1)
toklens = length of strings in each entry of strtok
names = array of system names
namelens = length of string for each entry in names
sysdata = matrix defining number of states, outputs, inputs for
each system listed in names
OUTPUT:
od
odl
fromsys = system from which ...
gains
er = error code, if 0 then everything is OK
Dependencies