MATLAB Program for finding Error Coefficients

Q. The open-loop transfer function of a unity feedback control system is given by

Find error coefficients (a). Kp  (b). Kv  (c). Ka

Program

% program for calculation of error coefficients
% provided by electricalvoice.com
clc
clear all
numg=10
deng=[1 6 10]
%step input
%calculation of error coefficient kp
G=tf(numg, deng)
kp=dcgain(G)
Ess=1/(1+kp)
%ramp input
%calculation of error coefficient kv
numsg=conv([1 0], numg)
densg=[1 6 10]
sG=tf(numsg, densg)
kv=dcgain(sG)
ess=1/kv
%parabolic input
%calculation of error coefficient ka
nums2g=conv([1 0 0], numg)
dens2g=[1 6 10]
s2G=tf(nums2g, dens2g)
ka=dcgain(s2G)
ess=1/ka
pause

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need fund to operate the site, and almost all of it comes from our online advertising.

Please add electricalvoice.com to your ad blocking whitelist or disable your adblocking software.

×