No BSD License  

Highlights from
pole-placement design (' diophantine ')

2.9

2.9 | 10 ratings Rate this file 1 Download (last 30 days) File Size: 674 Bytes File ID: #15068
image thumbnail

pole-placement design (' diophantine ')

by abdelhamid alhassi

 

21 May 2007 (Updated 21 May 2007)

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

| Watch this File

File Information
Description

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]

MATLAB release MATLAB 7.2 (R2006a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (10)
21 May 2007 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);

23 May 2007 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.

23 May 2007 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.

28 May 2007 Chuyen Lam  
29 May 2007 C. S.

Poor

28 Dec 2007 Ali Veli

Thanks, saved a lot of time..

28 Dec 2007 vijay nayer

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

23 Feb 2008 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.

06 Mar 2008 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 :)

09 Mar 2008 lady maly  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
diophantine abdelhamid alhassi 22 Oct 2008 09:13:24
forward path abdelhamid alhassi 22 Oct 2008 09:13:24
feedback abdelhamid alhassi 22 Oct 2008 09:13:24
gains abdelhamid alhassi 22 Oct 2008 09:13:24
pole abdelhamid alhassi 22 Oct 2008 09:13:24
design abdelhamid alhassi 22 Oct 2008 09:13:24
poleplaceme abdelhamid alhassi 22 Oct 2008 09:13:24

Contact us at files@mathworks.com