File Exchange

pole-placement design (' diophantine ')

version 1.0.0.0 (420 Bytes) by abdelhamid alhassi

abdelhamid alhassi (view profile)

this program measures the parameters of forward path gain and the feedback gain

Updated 21 May 2007

This function can be used for measuring the parameters of forward path gain and the feedback gain for a pole-placement controller design

[F G]=dio(A,B,Am)

if
f*a+g*b=am

a=1+(a1)*z^-1+(a2)*z^-2+....+(an)*z^-n
b=(b0)+(b1)*z^-1+(b2)*z^-2+....+(bm)*z^-m
am=(am0)+(am1)*z^-1+...+(amr)*z^-r
f=(f0)+(f1)*z^-1+...+(fp)*z^-p
g=(g0)+(g1)*z^-1+...+(gq)*z^-q

then
A=[1 a1 ... an]
B=[b0 b1 ... bn]
Am=[am0 am1 ... amr]
F=[f0 f1 ... fp]
G=[g0 g1 ... gp]

Andreas Schneider

Well, code is commentfree (not really needed, cause it's nice & small, but - wtf is am?), it helps alot if you cant buy technical journals...
THANK YOU !
( hope it will work :)

Sargon Abrohom

The code doesn't include any word of explanatory cooments. In such cases, this code will most probably a time consuming and frustrating stuff for the other users too.

vijay nayer

hai im vijay
im a student of anna university ,
your information is very much for my project,
thank youuuuuuuuuuuuu.........

Ali Veli

Thanks, saved a lot of time..

C. S.

Poor

Chuyen Lam

John D'Errico

I really like the idea of Ali Özgül, that any file could/should be rated under many different attributes. My own overall rating for this code is somewhere in the 1 to 2 range. With some decent amount of help, explanation, comments, etc., I imagine my rating would be higher. It should have some explanation as to what the arguments are. Otherwise, its a list of useless bits and a waste of time for anyone to download.

One other thing the author might learn is to improve their programming style. Use more descriptive variable names. Entirely single letter, un-mnemonic variable names will be very frustrating to follow a year from now when you need to modify this code, or find a bug in it.

As I said, my rating for this is somewhere between 1 and 2, but its closer to a 1. Note that a "poor" rating from me does not mean impossibly bad, but this file needs a lot of work before I'd be willing to call it good.

Ali Özgül

Documentation:
+Publis M-files application and theory (1)
+Graphical program interface (1)
+Workable program description (3)
+Works references (3)

Programming:
+M-files complexity (3)
+Mlint error message (2)
+Help problems (3)
+Filename of clashes (5)
+Clone the code line (5)
+Program's symbolic manuscript (2)
+Program samples and runing test (3)
+System requirements (5)
+Program running speed (3)

Files archive:
Seleceted file name (4)
Per files comment (3)
All files usefuly (2)

Thanks:
Not usefuly. Needs improvements
Good works.

Duane Hanselman

FYI, here is what is in the file:

function [F G]=dio(a,b,am)
% Dio is a function designed by MAHFY and it:
% measures the parameters of forward path gain and the feedback gain
m=length(b)-1;
n=length(a)-1;
l=m+n;
aa=zeros(1,length(a)+2*(m-1));
for i=1:(length(a))
aa(1,i+m-1)=a(1,i);
end
for k=1:l
c=0;
for i=1:m
ax(k,i)=aa(1,k+(m-1)-c);
c=c+1;
end
end
bb=zeros(1,length(b)+2*(n-1));
for i=1:(length(b))
bb(1,i+n-1)=b(1,i);
end
for k=1:l
c=0;
for i=1:n
bx(k,i)=bb(1,k+(n-1)-c);
c=c+1;
end
end
x=[ax bx];
for i=1:l
xx=x;
xx(:,i)=am(1,:);
f(i)=det(xx)/det(x);
end
F(:,:)=f(:,1:m);
G(:,:)=f(:,m+1:l);

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux