Code covered by the BSD License

### Katie Singleton (view profile)

MATLAB and Simulink files for textbook Nise/Controls 6e.

ch11ti1.m
```% Nise, N.S.
% Control Systems Engineering, 6th ed.
% John Wiley & Sons, Hoboken, NJ, 07030
%
% Control Systems Engineering Toolbox Version 6.0
% Copyright  2011 by John Wiley & Sons, Inc.

% TryIt 11.1
% Use MATLAB, the Control System Toolbox, and the
% following statements to solve Skill-Assessment
% Exercise 11.1.

'TryIt 11.1'
pos=20
z=(-log(pos/100))/(sqrt(pi^2+log(pos/100)^2))
Pm=atan(2*z/(sqrt(-2*z^2+sqrt(1+4*z^4))))*(180/pi)
G=zpk([],[0,-50,-120],1)
sisotool

% In the SISOTOOLWindow:
% 1. Select Import . . . in the File menu.
% 2. Click on G in the System Data Window and click Browse. . .
% 3. In the Model Import Window select radio button
%    Workspace and select G in Available Models. Click Import,
%    then Close.
% 4. Click Ok in the System Data Window.
% 5. Right-click in the Bode graph area and be sure all
%    selections under Show are checked.
% 6. Grab the stability margin point in the magnitude diagram
%    and raise the magnitude curve until the phase curve shows
%    the phase margin calculated by the program and shown in
%    the MATLAB Command Window as Pm.
% 7. Right-click in the Bode plot area, select Edit
%    Compensator. . . and read the gain under Compensator
%    in the resulting window.```