Differences From Artifact [4f78fae1a2]:

To Artifact [5b4425092f]:


9
10
11
12
13
14
15



16
17
18
19
20
21
22
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25







+
+
+







# Copyright (c) P.J.Gawthrop 1998

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.2  1998/02/09 14:04:00  peterg
## Renamed matrix to cTF;
##
## Revision 1.1  1998/02/09 13:54:34  peterg
## Initial revision
##
###############################################################


# Inform user
45
46
47
48
49
50
51
52

53
54
55
56
57
58
59
48
49
50
51
52
53
54

55
56
57
58
59
60
61
62







-
+







%State matrices of the compensator
A_d := MTTA - MTTL*MTTC - MTTB*MTTK;
B_d := -MTTL;
C_d := -MTTK;
D_d := 0;

%Transfer function
MTTGc := C_d*((s*MTTI - A_d)^(-1))*B_d;
MTTcTF := C_d*((s*MTTI - A_d)^(-1))*B_d;

%Create the output file
OUT "$1_ctf.r"; 
%Write out the matrices.

write "%  - Compensator TF";
MTT_Matrix := MTTcTF$

MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]