I want to plot a rootlocus plot. I have added addpath(pwd) and pkg load control commands but no help. I keep getting the error: error: 'rlocfind' undefined near line 1 column 7
.
Please tell me what my mistake is.
addpath(pwd)
pkg load control
%script to demostrate RL
%Model of plat
ng=[1];% no of zeros
dg= [1 0.5]; %s+0.5
%controller structure
ngc= [1];
dgc= [1 0 ];%I only
%H tf
nh=[1];
dh=[1];
%loop tf. Gc*Gp*H
nl= conv(conv(ng,ngc),nh);
dl= conv(conv(dg,dgc),dh);
[k,p]=rlocfind(nl,dl)