求离散系统的传递函数
global Ax Ay G
x=get(handles.edit1,'String');
y=get(handles.edit2,'String');
Ax=str2num(x);
Ay=str2num(y);
G=tf(Ax,Ay,1);
set(handles.text2,'String',G);
求离散系统的传递函数
global Ax Ay G
x=get(handles.edit1,'String');
y=get(handles.edit2,'String');
Ax=str2num(x);
Ay=str2num(y);
G=tf(Ax,Ay,1);
set(handles.text2,'String',G);
收起
可以这样写:
global Ax Ay G
x=get(handles.edit1,'String');
y=get(handles.edit2,'String');
Ax=str2num(x);
Ay=str2num(y);
Gstr = poly2sym(Ax,sym('s'))/poly2sym(Ay,sym('s'))
set(handles.text2,'String', string(Gstr));
如有帮助,还望题主给个宝贵的采纳支持一下哟,谢谢啦
报告相同问题?