CDirenzi
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.
>> 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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.