6.11. NICHOLS CHART USING MATLAB 
In the previous section, the Nichols chart was illustrated. We superimposed a hand-drawn plot of the open-loop transfer function G(s)H(s) on a pre-drawn and supplied Nichols chart. In this section, the MATLAB utility used for obtaining the Nichols chart is identified, and the reader will be shown how to obtain the Nichols chart very easily and accurately using MATLAB. The control-system engineer does not have to go and find a pre-drawn Nichols chart when using MATLAB. The Nichols chart and the superimposed plot of G(s)H(s) are both created and drawn at the same time.
The MATLAB Control System Toolbox uses the command nichols to create the Nichols frequency response plot, and it uses the command ngrid to generate the grid lines for a Nichols chart. The MCSTD Toolbox simplifies the process with the comman nichgrid.
The definition of the nichgrid command is as follows:
function[x,y] = nichgrid(g,a,b,n)
g = grid values for axis (in degrees and dB)
a = angles (in degrees, − 180° < a < 0)
b = gains (in dB)
n = interpolation value (optional, default = none) ...