[求助]我的GUI程程序错在哪
下面是我的一个按纽的功能,它是读取一个矩阵的指定行指定列的子块矩阵的。function pushbutton1_Callback(hObject, eventdata, handles
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
e1=findobj('tag','ed1');
data1=str2num(get(e1,'string'));
e2=findobj('tag','ed2');
data2=str2num(get(e2,'string'));
e3=findobj('tag','ed3');
data3=str2num(get(e3,'string'));
e4=findobj('tag','ed4');
data4=str2num(get(e4,'string'));
r=f((data1:data2),(data3:data4)); %从enviview读出的数据所组成的矩阵的子块
e5=findobj('tag','ed5');
set(e5,'string',r);
其中f是我存储起来的一个矩阵有121万的数据
上面的ed1-5对应着我的相应的text控件
我用text1-4接收指定的具体行和列,text5显示读的子矩阵块。
哪位大哥大姐能来指点一下,告诉我错在哪里了,谢谢谢谢!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11