I tried this
syms f1 f2 za = (f1-f2)*z^2 + f1*z +1coeffes(a,z,'all')
I expected to get [f1-f2, f1, 1]But it reports error. Does anyone know any other methods to do this?
coefficientpolynomialpowersymbolicsymbolic coefficient
syms f1 f2 za = (f1-f2)*z^2 + f1*z +1coeffes(a,z,'all')
Best Answer