PrintSystem - Maple Help

DynamicSystems

 PrintSystem
 print the content of a system object

 Calling Sequence PrintSystem( sys, opts )

Parameters

 sys - System; system object to print opts - (optional) equation(s) of the form option = value; specify options for the PrintSystem command

Options

 • 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.

Description

 • The PrintSystem command prints the content of sys, a system object.

Examples

 > $\mathrm{with}\left(\mathrm{DynamicSystems}\right):$
 > $\mathrm{sys1}≔\mathrm{NewSystem}\left(\right)$
 ${\mathrm{sys1}}{≔}\left[\begin{array}{c}{\mathbf{Algebraic Equation}}\\ {\mathrm{continuous}}\\ {\mathrm{1 output\left(s\right); 1 input\left(s\right)}}\\ {\mathrm{inputvariable}}{=}\left[{u}{}\left({t}\right)\right]\\ {\mathrm{outputvariable}}{=}\left[{y}{}\left({t}\right)\right]\end{array}\right$ (1)
 > $\mathrm{PrintSystem}\left(\mathrm{sys1}\right)$
 $\left[\begin{array}{l}{\mathbf{Algebraic Equation}}\\ {\mathrm{continuous}}\\ {\mathrm{1 output\left(s\right); 1 input\left(s\right)}}\\ {\mathrm{inputvariable}}{=}\left[{u}{}\left({t}\right)\right]\\ {\mathrm{outputvariable}}{=}\left[{y}{}\left({t}\right)\right]\\ {\mathrm{ae}}{=}\left[{y}{}\left({t}\right){=}{u}{}\left({t}\right)\right]\end{array}\right$ (2)
 > $\mathrm{sys2}≔\mathrm{NewSystem}\left(\frac{s}{{s}^{3}+5{s}^{2}+7s+6}\right)$
 ${\mathrm{sys2}}{≔}\left[\begin{array}{c}{\mathbf{Transfer Function}}\\ {\mathrm{continuous}}\\ {\mathrm{1 output\left(s\right); 1 input\left(s\right)}}\\ {\mathrm{inputvariable}}{=}\left[{\mathrm{u1}}{}\left({s}\right)\right]\\ {\mathrm{outputvariable}}{=}\left[{\mathrm{y1}}{}\left({s}\right)\right]\end{array}\right$ (3)
 > $\mathrm{PrintSystem}\left(\mathrm{sys2}\right)$
 $\left[\begin{array}{l}{\mathbf{Transfer Function}}\\ {\mathrm{continuous}}\\ {\mathrm{1 output\left(s\right); 1 input\left(s\right)}}\\ {\mathrm{inputvariable}}{=}\left[{\mathrm{u1}}{}\left({s}\right)\right]\\ {\mathrm{outputvariable}}{=}\left[{\mathrm{y1}}{}\left({s}\right)\right]\\ {{\mathrm{tf}}}_{{1}{,}{1}}{=}\frac{{s}}{{{s}}^{{3}}{+}{5}{}{{s}}^{{2}}{+}{7}{}{s}{+}{6}}\end{array}\right$ (4)
 > $\mathrm{tf_mimo_z}≔\mathrm{Matrix}\left(\left[\left[\frac{1}{{z}^{2}},\frac{{z}^{2}}{{z}^{3}+5{z}^{2}+7z+6}\right],\left[\frac{1}{z},\frac{c}{{z}^{2}+az+b}\right]\right]\right)$
 ${\mathrm{tf_mimo_z}}{≔}\left[\begin{array}{cc}\frac{{1}}{{{z}}^{{2}}}& \frac{{{z}}^{{2}}}{{{z}}^{{3}}{+}{5}{}{{z}}^{{2}}{+}{7}{}{z}{+}{6}}\\ \frac{{1}}{{z}}& \frac{{c}}{{a}{}{z}{+}{{z}}^{{2}}{+}{b}}\end{array}\right]$ (5)
 > $\mathrm{sys3}≔\mathrm{NewSystem}\left(\mathrm{tf_mimo_z},\mathrm{discrete},\mathrm{sampletime}=0.001,\mathrm{systemname}="Sample discrete MIMO system"\right)$
 ${\mathrm{sys3}}{≔}\left[\begin{array}{c}{\mathbf{Transfer Function}}\\ {\mathrm{discrete; sampletime = .1e-2}}\\ {\mathrm{systemname}}{=}{\mathrm{Sample discrete MIMO system}}\\ {\mathrm{2 output\left(s\right); 2 input\left(s\right)}}\\ {\mathrm{inputvariable}}{=}\left[{\mathrm{u1}}{}\left({z}\right){,}{\mathrm{u2}}{}\left({z}\right)\right]\\ {\mathrm{outputvariable}}{=}\left[{\mathrm{y1}}{}\left({z}\right){,}{\mathrm{y2}}{}\left({z}\right)\right]\end{array}\right$ (6)
 > $\mathrm{PrintSystem}\left(\mathrm{sys3}\right)$
 $\left[\begin{array}{l}{\mathbf{Transfer Function}}\\ {\mathrm{discrete; sampletime = .1e-2}}\\ {\mathrm{systemname}}{=}{\mathrm{Sample discrete MIMO system}}\\ {\mathrm{2 output\left(s\right); 2 input\left(s\right)}}\\ {\mathrm{inputvariable}}{=}\left[{\mathrm{u1}}{}\left({z}\right){,}{\mathrm{u2}}{}\left({z}\right)\right]\\ {\mathrm{outputvariable}}{=}\left[{\mathrm{y1}}{}\left({z}\right){,}{\mathrm{y2}}{}\left({z}\right)\right]\\ {{\mathrm{tf}}}_{{1}{,}{1}}{=}\frac{{1}}{{{z}}^{{2}}}\\ {{\mathrm{tf}}}_{{2}{,}{1}}{=}\frac{{1}}{{z}}\\ {{\mathrm{tf}}}_{{1}{,}{2}}{=}\frac{{{z}}^{{2}}}{{{z}}^{{3}}{+}{5}{}{{z}}^{{2}}{+}{7}{}{z}{+}{6}}\\ {{\mathrm{tf}}}_{{2}{,}{2}}{=}\frac{{c}}{{{z}}^{{2}}{+}{a}{}{z}{+}{b}}\end{array}\right$ (7)
 > $\mathrm{PrintSystem}\left(\mathrm{sys3},\mathrm{compact}\right)$
 $\left[\begin{array}{l}{\mathbf{Transfer Function}}\\ {\mathrm{discrete; sampletime = .1e-2}}\\ {\mathrm{systemname}}{=}{\mathrm{Sample discrete MIMO system}}\\ {\mathrm{2 output\left(s\right); 2 input\left(s\right)}}\\ {\mathrm{inputvariable}}{=}\left[{\mathrm{u1}}{}\left({z}\right){,}{\mathrm{u2}}{}\left({z}\right)\right]\\ {\mathrm{outputvariable}}{=}\left[{\mathrm{y1}}{}\left({z}\right){,}{\mathrm{y2}}{}\left({z}\right)\right]\\ {\mathrm{tf}}{=}\left[\begin{array}{cc}\frac{{1}}{{{z}}^{{2}}}& \frac{{{z}}^{{2}}}{{{z}}^{{3}}{+}{5}{}{{z}}^{{2}}{+}{7}{}{z}{+}{6}}\\ \frac{{1}}{{z}}& \frac{{c}}{{{z}}^{{2}}{+}{a}{}{z}{+}{b}}\end{array}\right]\end{array}\right$ (8)