Quick question about GUI and calling functions.
1 次查看(过去 30 天)
显示 更早的评论
How can I call a function on GUI with a Push button without closing the GUI?
% --- 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)
ASK
I call the "ASK" function with the push button and it works, but the GUI closes and I need to run it again.
0 个评论
回答(1 个)
TADA
2019-3-29
I'm guessing you mean this file exchange https://www.mathworks.com/matlabcentral/fileexchange/44820-matlab-code-for-ask-modulation-and-demodulation?focused=3805499&tab=function
If so, it starts with
clear all
close all
clc
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!