updateQ.m
SYNTAX: [Q,ierr] = updateQ(ksys,tokarr,Q,system_data,numsys,sysnames)
PURPOSE: Add connections for the ksys'th system to the connection matrix Q.
INPUT:
ksys = number of system being worked on
tokarr = array of tokens for input to ksys'th system
Q = connection matrix for connect.m in Control Toolbox
system_data= array containin #states, inputs, outputs for each system
numsys = number of total systems
sysnames = names of all systems
OUTPUT:
Q = connection matrix after update
ierr = error code, different from 0 if error in construction
Dependencies