Revision 215, 0.5 kB
(checked in by smidl, 16 years ago)
|
PMSM new sim.cpp
|
Rev | Line | |
---|
[215] | 1 | itload('../merg_egiw_b10.it'); |
---|
| 2 | |
---|
| 3 | figure(1); |
---|
| 4 | subplot(1,3,1); |
---|
| 5 | hold off |
---|
| 6 | plot(G(:,1),'-') |
---|
| 7 | hold on |
---|
| 8 | plot(P1(:,1),'-.') |
---|
| 9 | plot(M(:,1),'--') |
---|
| 10 | plot([1,100],[1.5,1.5],':') |
---|
| 11 | xlabel('time [t]') |
---|
| 12 | title('Expected value of a_1') |
---|
| 13 | |
---|
| 14 | subplot(1,3,2); |
---|
| 15 | hold off |
---|
| 16 | plot(G(:,2),'-') |
---|
| 17 | hold on |
---|
| 18 | plot(P2(:,1),'-.') |
---|
| 19 | plot(M(:,3),'--') |
---|
| 20 | plot([1,100],[0.8,0.8],':') |
---|
| 21 | xlabel('time [t]') |
---|
| 22 | title('Expected value of a_2') |
---|
| 23 | |
---|
| 24 | subplot(1,3,3); |
---|
| 25 | hold off |
---|
| 26 | plot(G(:,3)) |
---|
| 27 | hold on |
---|
| 28 | plot(P1(:,2),'-.') |
---|
| 29 | plot(P2(:,2),'-.') |
---|
| 30 | plot(M(:,2),'--') |
---|
| 31 | plot([1,100],[0.01,0.01],':') |
---|
| 32 | xlabel('time [t]') |
---|
| 33 | title('Expected value of \sigma') |
---|
| 34 | |
---|