DynamicSystems
PrintSystem
print the content of a system object
Calling Sequence
Parameters
Options
Description
Examples
PrintSystem( sys, opts )
sys
-
System; system object to print
opts
(optional) equation(s) of the form option = value; specify options for the PrintSystem command
compact = truefalse
Specifies how the model expression members are printed. If true, then each member is displayed in matrix format. If false, then each component of each matrix is displayed on a separate line. It has no effect with de systems, which do not use Matrices. The default is false.
interface = Standard or Classic
Specifies the format of the output. If Standard, the printed output is suited for the Standard interface. If Classic, the printed output is suited for either the Classic or tty interface. The default is appropriate for the interface.
uselabels = truefalse
Specifies whether labels %1, %2, etc., are used to represent common terms. Only used in the Standard interface. The default is false.
maxlength = nonnegint or infinity
Specifies the length use to break expressions. Only used with the Standard interface. The default is 120.
The PrintSystem command prints the content of sys, a system object.
with⁡DynamicSystems:
sys1≔NewSystem⁡
sys1≔Algebraic Equationcontinuous1 output(s); 1 input(s)inputvariable=u⁡toutputvariable=y⁡t
PrintSystem⁡sys1
Algebraic Equationcontinuous1 output(s); 1 input(s)inputvariable=u⁡toutputvariable=y⁡tae=y⁡t=u⁡t
sys2≔NewSystem⁡ss3+5⁢s2+7⁢s+6
sys2≔Transfer Functioncontinuous1 output(s); 1 input(s)inputvariable=u1⁡soutputvariable=y1⁡s
PrintSystem⁡sys2
Transfer Functioncontinuous1 output(s); 1 input(s)inputvariable=u1⁡soutputvariable=y1⁡stf1,1=ss3+5⁢s2+7⁢s+6
tf_mimo_z≔Matrix⁡1z2,z2z3+5⁢z2+7⁢z+6,1z,cz2+a⁢z+b
tf_mimo_z≔1z2z2z3+5⁢z2+7⁢z+61zca⁢z+z2+b
sys3≔NewSystem⁡tf_mimo_z,discrete,sampletime=0.001,systemname=Sample discrete MIMO system
sys3≔Transfer Functiondiscrete; sampletime = .1e-2systemname=Sample discrete MIMO system2 output(s); 2 input(s)inputvariable=u1⁡z,u2⁡zoutputvariable=y1⁡z,y2⁡z
PrintSystem⁡sys3
Transfer Functiondiscrete; sampletime = .1e-2systemname=Sample discrete MIMO system2 output(s); 2 input(s)inputvariable=u1⁡z,u2⁡zoutputvariable=y1⁡z,y2⁡ztf1,1=1z2tf2,1=1ztf1,2=z2z3+5⁢z2+7⁢z+6tf2,2=cz2+a⁢z+b
PrintSystem⁡sys3,compact
Transfer Functiondiscrete; sampletime = .1e-2systemname=Sample discrete MIMO system2 output(s); 2 input(s)inputvariable=u1⁡z,u2⁡zoutputvariable=y1⁡z,y2⁡ztf=1z2z2z3+5⁢z2+7⁢z+61zcz2+a⁢z+b
See Also
Download Help Document