You can also perform open-loop analysis, for example, compute the gain and phase
margins at the plant input u.
% Note: -1 because |margin| expects the negative-feedback loop transfer
L = getLoopTransfer(ST1,'u',-1);
margin(L), grid
Tune Control Systems in Simulink