Matlab Program to plot Bode and Root Locus plot for the given transfer function o suppose we have the transfer function as s + 12 ------------- 2 s^2 + s + 4 Then the Matlab program for the bode plot will be as follows: clc clear all num=[1, 12]; den=[2, 1, 4]; system=tf(num,den) bode(system)
Plot the root-locus of the following system Plot the root-locus of the following system. h = tf([2 5 1],[1 2 3]); rlocus(h)
nyquist(sys) nyquist(sys,w) nyquist(sys1,sys2, nyquist(sys) nyquist(sys,w) nyquist(sys1,sys2,...,sysN) nyquist(sys1,sys2,...,sysN,w) nyquist(sys1,'PlotStyle1',...,sysN,'PlotStyleN') [re,im,w] = nyquist(sys) [re,im] = nyquist(sys,w) [re,im,w,sdre,sdim] = nyquist(sys)
Plot the Nyquist response of the system H = tf([2 5 1],[1 2 3]); nyquist(H)
Time Responses For illustration purposes, create the following third-order transfer function: sys = tf([8 18 32],[1 6 14 24]) subplot(2,1,1) step(sys) subplot(2,1,2) impulse(sys)
Frequency Response sys = tf([8 18 32],[1 6 14 24])
bode(sys) grid
nyquist(sys) grid
nichols(sys) grid
rlocus(G) grid