研发埠
标题:
设计GUI界面,解方程解这个方程a*x+b*y-1=0,c*x+d*y-2=0
[打印本页]
作者:
易立
时间:
2013-5-24 14:12
标题:
设计GUI界面,解方程解这个方程a*x+b*y-1=0,c*x+d*y-2=0
设计GUI界面,解方程解这个方程a*x+b*y-1=0,c*x+d*y-2=0。abcd为输入量。然后输出x y。% 获取文本框内容a = str2num(get(handles.edit_num1,'String')); b = str2num(get(handles.edit_num2,'String')); c = str2num(get(handles.edit_num3,'String')); d = str2num(get(handles.edit_num4,'String')); syms x ym=solve(a*x+b*y-1,c*x+d*y-2);set(handles. edit_x,'String',m(1)); set(handles. edit_y,'String',m(2)); guidata(hObject, handles); %更新结构体但是没有输出值。这是为什么呀?
欢迎光临 研发埠 (http://bbs.yanfabu.com/)
Powered by Discuz! X3.2