Previous in Forum: Transformer selection   Next in Forum: Replacing Fuse with CB
Close
Close
Close
3 comments
Rate Comments: Nested
Active Contributor

Join Date: Apr 2007
Posts: 24

control system in matlab

03/17/2008 12:12 AM

Hi
This is the commad in wrote in matlab:
>> c=tf([1 2],[2 4 1])

Transfer function:
s + 2
---------------
2 s^2 + 4 s + 1

>> zpkdata(c)

ans =

[-2]
it shows the zero but not the poles and the gain, why?

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Engineering Fields - Control Engineering - New Member China - Member - New Member

Join Date: Sep 2006
Location: CHINA
Posts: 2945
Good Answers: 14
#1

Re: control system in matlab

03/18/2008 12:04 AM

you must forget to convert it into zero poles and gain model!

try this command:

c=tf([1 2],[2 4 1]);

zpk(c);

zpkdata(c)

or simple try.

[z,p,k]=zpkdata(c)

Register to Reply
Anonymous Poster
#2
In reply to #1

Re: control system in matlab

03/18/2008 9:34 PM

I just wanted to add that if you do a 'v' option so the call looks like this:

[Z,P,K] = zpkdata(c,'v')

the P is returned as a vector instead of a cell array. The other is perfect too.

Register to Reply
Guru
Engineering Fields - Control Engineering - New Member China - Member - New Member

Join Date: Sep 2006
Location: CHINA
Posts: 2945
Good Answers: 14
#3
In reply to #2

Re: control system in matlab

03/19/2008 3:46 AM

very good.

Register to Reply Off Topic (Score 5)
Register to Reply 3 comments

Previous in Forum: Transformer selection   Next in Forum: Replacing Fuse with CB

Advertisement