matlab 如何提取系数

问题描述:

matlab 如何提取系数
如表达式
I1是关于U2 I2的表达式,如何提取I1中含有U2的式子,I1中含有I2的式子
I1 =
- I2*((C1*w*i - (C3*U2*w*((U2 - I2*(R1 + L1*w*i))/U2 - 1)*i)/(U2 - I2*(R1 + L1*w*i)))*(R1 + L1*w*i) - 1) + U2*(C1*w*i - (C3*U2*w*((U2 - I2*(R1 + L1*w*i))/U2 - 1)*i)/(U2 - I2*(R1 + L1*w*i)));

collect Collect coefficients SyntaxR = collect(S)R = collect(S,v)DescriptionFor each polynomial in the array S of polynomials,collect(S) collects terms containing the variable v (or x,if v is not spec...