- #1

Ethers0n

- 27

- 0

https://www.physicsforums.com/showthread.php?t=73985

I'm attempting to use MATLAB to solve an electrical engineering problem dealing with controls...

I'm trying to design a transfer function which will control a servo motor using what is often referred to as the Polynomial Equations Aproach.

The approach uses the Sylvester Matrix E to produce a controller for a transfer function.

M = desired controller

E = Sylvester Matrix

D = Diophantine Value = a(z)A(z) + b(z)B(z)

where

PLant Transfer function = B(z)

------

A(z)

a(z) and b(z) are unique polynomials which you multiply A(z) and B(z) by to get your desired state...

To keep from getting everything congested, I'll not post the code here. It is at the link above. (is there a better way to display the code next time?)

Basically, I've been over the MATLAB code so many times my eyes are bleeding and I still can't figure it out...if anyone could I take a look, I'd appreciate it...

The plant transfer functin is controllable, but I didn't include those lines in the MATLAB code.

Thank you.