matlab GUI设计中可以用一个pushbutton输出两个值吗?
functionpushbutton1_Callback(hObject,eventdata,handles)a=str2num(get(handles.edit1,'s...
function pushbutton1_Callback(hObject, eventdata, handles)
a=str2num(get(handles.edit1,'string'));
R=str2num(get(handles.edit2,'string'));
c=2arcsin((a/2)/R);
d=R-sqrt(R^2-(a/2)^2);
set(handles.text3,'string',d);
set(handles.text4,'string',c); 展开
a=str2num(get(handles.edit1,'string'));
R=str2num(get(handles.edit2,'string'));
c=2arcsin((a/2)/R);
d=R-sqrt(R^2-(a/2)^2);
set(handles.text3,'string',d);
set(handles.text4,'string',c); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询