при присваивании кнопки pushbutton​1_Callback​(hObject, eventdata, handles) выдает ряд ошибок

% --- Executes on button press in pushbutton1.
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)
a=get(handles.edit3, 'String');
a=str2double(a);
b=get(handles.edit4, 'String');
b=str2double(b);
c=a+b;
set(handles.edit5, 'String', edit5);

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Entering Commands 的更多信息

评论:

2020-4-29

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by