Browse Source

update BE.m

Tom Aymonnier 4 months ago
parent
commit
f4c3a0568a
1 changed files with 10 additions and 10 deletions
  1. 10
    10
      BE.m

+ 10
- 10
BE.m View File

@@ -61,29 +61,29 @@ title("R
61 61
 
62 62
 % Variation de Q
63 63
 figure
64
-for i = [1:100]
65
-  [G, K, lambda]=lqr(A,B,i*Q,R);
64
+for i = [1:10]
65
+  [G, K, lambda]=lqr(A,B,10*i*Q,R);
66 66
   Abf=A-B*G;
67 67
   
68 68
   sysZsBF = ss(Abf, E, C_st, 0);
69
-  Zs_BF = tf(sysZsBF)
69
+  Zs_BF = tf(sysZsBF);
70 70
 
71 71
   
72
-  step(0.08*sysZsBF)
72
+  step(0.08*sysZsBF);
73 73
   
74
-  hold on
74
+  hold on;
75 75
 end 
76 76
 
77 77
 figure
78
-for i= [1:100]
79
-  [G, K, lambda]=lqr(A,B,i*Q,R);
78
+for i= [1:10]
79
+  [G, K, lambda]=lqr(A,B,10*i*Q,R);
80 80
   Abf=A-B*G;
81 81
   sysZuBF = ss(Abf, E, C_ut, 0);
82
-  Zu_BF = tf(sysZuBF)
82
+  Zu_BF = tf(sysZuBF);
83 83
   
84
-  step(0.08*sysZuBF)
84
+  step(0.08*sysZuBF);
85 85
   
86
-  hold on
86
+  hold on;
87 87
 end
88 88
 
89 89
 %commande obtenue par u=-Gx, C=-G

Loading…
Cancel
Save