需要先转换为符号量,求导之后再转换为传递函数。
参考代码:
Gs=poly2sym(G.num{1},'s')/poly2sym(G.den{1},'s');D5Gs=diff(Gs,5);[num,den]=numden(D5Gs);tf(sym2poly(num),sym2poly(den))