matlab未定义str,已经定义了变量却报错“未定义函数或变量”
x=str2num(get(handles.edit1,'string'));y=str2num(get(handles.edit2,'string'));axes(handles.axes1)n=length(x);%各点依次连线for h=2:nplot([x(h-1),x(h)],[y(h-1),y(h)]);end%求出最高点a1=(y(n)-y(1))/(x(n)-x(1));b1=y(...