Matlab版本: 2013
以下是程式碼:
g = sym('[g1,g2,g3]') ; %變數陣列 g
a = sym('[a1,a2,a3]') ; %變數陣列 a
%%%%%%%%%%%%忽略部分計算%%%%%%%%%%%%%
NTF(s) = 1/POF ;
simplifyFraction(NTF(s))
collect(NTF(s),s)
[num, den] = numden(NTF(s))
collect(num,s)
collect(den,s)
den_coeffs = coeffs(den,s) % s^0