为啥用gui的设计出来的程序一直报错说矩阵类型不对,但我输入的是数值呀、
Afficher commentaires plus anciens
b=get(handles.edit1,'String');
d= get(handles.edit4,'String');
f=get(handles.edit5,'String');
pa=get(handles.edit6,'String');
a=get(handles.edit7,'String');
c= get(handles.edit8,'String');
g= get(handles.edit9,'String');
i= get(handles.edit10,'String');
m= get(handles.edit11,'String');
h= get(handles.edit13,'String');
e=15;
n02=(h-g)*0.01;
n01=n01.*m.*i;
n0=n01/i;
错误使用 ./
矩阵维度必须一致。
出错 untitled1111>pushbutton1_Callback (line 301)
n02=(h-g)*0.01;
出错 gui_mainfcn (line 95)
feval(varargin{:});
出错 untitled1111 (line 42)
gui_mainfcn(gui_State, varargin{:});
出错
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)untitled1111('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
错误使用 tangce (line 2)
计算 UIControl Callback 时出错。
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!