Link to home
Start Free TrialLog in
Avatar of CDirenzi
CDirenziFlag for United States of America

asked on

Symbolic Toolbox - extract coefficients for a transfer function

Given these two lines of code:
>> x = sym('x')
>> expand((x-2)*(x-4))

I will get this back:
>>x^2-6*x+8

Is there an easy way to extract the coefficients of a symbolic polynomial?  Transfer functions, the tf() command, expect only coefficients.  
ASKER CERTIFIED SOLUTION
Avatar of CDirenzi
CDirenzi
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial