Export Design and Validate in Simulink Model
To export the designed controller to the MATLAB workspace, click Export. In the Export
Model dialog box, select C, and click Export. Write the controller parameters to the
Simulink model.
[Cnum,Cden] = tfdata(C,'v');
hws = get_param(mdl, 'modelworkspace');
assignin(hws,'Cnum',Cnum)
assignin(hws,'Cden',Cden)
9 Classical Control Design