Connecting models for state space
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have to inputs, r and d respectively. I can only manage to create SYS with one input only as you can see on my last line of code. Would it be possible to also include 'd' as an input argument when i'm connecting the system?
s= tf('s');
sum1 = sumblk('u1 = r - y7 - y6'); sum2 = sumblk('u2 = d + y1'); sum3 = sumblk( 'Y = y5 + y4');
sys1 = 0.6*s/s; sys2 = 1/s; sys3 = 1/(s+1); sys4= 1/s; sys5 = 1.8*s/s; sys6 = 2.2*s/s; sys7 = 2.5*s/s;
sys1.u = 'u1'; sys1.y = 'y1'; sys2.u = 'y1'; sys2.y = 'y2'; sys3.u = 'y2'; sys3.y = 'y3'; sys4.u = 'y3'; sys4.y = 'y4'; sys5.u = 'y2'; sys5.y = 'y5'; sys6.u = 'y3'; sys6.y = 'y6'; sys7.u = 'y4'; sys7.y = 'y7';
sys0 = append(sys1,sys2,sys3,sys4,sys5,sys6,sys7);
SYS = connect(sys0,sum1,sum2,sum3,'r','Y')
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Model Interconnection finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!