设计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); %更新结构体但是没有输出值。这是为什么呀? |
|
|
|
|
共 0 个关于本帖的回复 最后回复于 2013-5-24 14:12