Chapter 2 Linear System Representation
Xmath Control Design Module 2-6 ni.com
Again, you create the system using the system( ) function. This time you
use the optional dt keyword to indicate that this system is discrete.
A = [0,1;-0.75,0];
B = [1,0]';
C = [0,1];
D = 0;
sys4 = system(A,B,C,D, {dt = 0.5})
sys4 (a state space system) =
A
0 1
-0.75 0
B
1
0
C
0 1
D
0
X0
0
0
System is discrete, sampling at 0.5 seconds.
Although five lines of MathScript were used to be as explicit as possible in
creating this system, the call to system( ) can encompass all of them.
Note When you create a system object, its inputs (A, B, C, D) are no longer needed.
Basic System Building FunctionsThe functions discussed in the following sections are available with the
general Xmath package. However, Control Design Module users will find
these functions an intrinsic part of their work, warranting this discussion.
The Xmath Help provides additional details about these functions and
examples of their use.
system( )Sysd=system(A,B,C,D,{dt,inputNames,
outputNames,stateNames,X0})
Sys = system(num,den,{dt,inputNames,outputNames})
Sys = system(Sys,{keywords})