4.2. A SIMPLE FLEXIBLE STRUCTURE EXAMPLE 173
4.2.6 A Simulation StudyNow the two controllers(Khinf and Kmu) are studied by simulation. An unweighted
interconnection is set up with sysic and starp is used to close the loop for each
controller.
ssnames = ["vcmodel"; "Wavoice"; "Wmvoice"; "Wmpiezo"; "piezo"]
inps = ["d1i"; "d2i"; "dist"; "noise"; "vact"; "pact"]
ops = ["Wavoice"; "Wmvoice"; "Wmpiezo";...
"d1i + vcmodel + d2i + piezo + noise"; "vact"; "pact";...
"d1i + vcmodel + d2i + piezo + noise"]
cnx = ["dist + vact"; "dist + vact"; "vcmodel"; "piezo"; "pact"]
Pnom =
sysic(ssnames,inps,ops,cnx,vcmodel,Wavoice,Wmvoice,Wmpiezo,piezo)
Random inputs are created for the noise and structure disturbances. Both ar enor mally
distributed. These are passed through their respective performance weights to give
signals of the appropriatesize (and if necessary frequency content). Both signals are
plotted.
u1 = randpdm(400,1,1,{Dlast=2,regular,zeromean})
u2 = randpdm(400,1,1,{Dlast=2,regular,zeromean})
u = [Wdist*u1; Wnoise*u2]
gph7 = ctrlplot(u(1,1));
gph7 = plot(gph7,{title="Simulation: disturbance"})?