Please Matlab Help on Arranging in Descending order

Status
Not open for further replies.

oshaye3

Member level 3
Joined
Aug 4, 2010
Messages
62
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
london
Activity points
1,822
Dear all,

I am trying to arrange this transfer funcion in descending order in order to synchronize with the rest of my code. but it gives me error. look at the results with error. How can I arrange it so that the first order become last TF in the transfer function PLEASE SEE BELOW. ANY LOGIC THANKS. I put the code above as well
Code:

den2 = real(den1)
H1 = tf(1,den2) % Transfer function
A=den2
p=polyfact(A)
p_size=ones(size(p))
num = num2cell(p_size);
H2= tf(num,p)

Transfer function from input 1 to output:
1
-----------------
s^2 + 0.618 s + 1

Transfer function from input 2 to output:
1
-----
s + 1

Transfer function from input 3 to output:
1
-----------------
s^2 + 1.618 s + 1

??? Undefined function or method 'sort' for input arguments of type 'tf'.

Error in ==> mbutter at 43
H2=sort(H2,'descend')
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…