MATLAB,DUI做界面只能输入,不能输出结果?
我的程序function pushbutton1_Callback(hObject, eventdata, handles)u=str2double(get(handlees.edit1,'string')); v=str2double(get(handlees.edit2,'string'));a=str2double(get(handlees.edit3,'string')); b=str2double(get(handlees.edit4,'string')); d=str2double(get(handlees.edit5,'string')); g=9.81; e=2.71828;forc=0.3:0.1:1.3 。。。。。。。。。。。。。。。。。。 j1=S4^2/(S3*S5); j2=sqrt(1-j1); if j2>=0.4 S3=(1-0.5*j2^2)*S3; k1=1.25*sqrt(S3)*180/pi; k2=2*sqrt(S3)*180/pi; k3=2.55*sqrt(S3)*180/pi; k4=2*pi*sqrt(S3/S4); else k1=1.25*sqrt(S3)*180/pi; k2=2*sqrt(S3)*180/pi; k3=2.55*sqrt(S3)*180/pi; k4=2*pi*sqrt(S3/S4); end set(handles.text1,'String',k1); set(handles.text2,'String',k2); set(handles.text3,'String',k3); set(handles.text4,'String',k4);endend现在可以运行界面,但计算结果无法正常输出,高手帮忙看一下,附带有运行错误的图片,是我的输出语句有问题么?
页:
[1]