Thanks for your quick reply. I found my error. It was a waitbar in my external function that once completed the function it closed the entire gui
Matlab Gui. Retrieve the output of a function (external .m file) within a push button. Could anyone explain how to do it?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Davide Dall'Acqua
am 23 Sep. 2017
Beantwortet: Davide Dall'Acqua
am 23 Sep. 2017
Hello I'm new about use the Matlab Gui. I'm struggling to retrieve the output of a function (external .m file) in a push button. Could anyone explain how to do it?
%code
function Simulate_Callback(hObject, eventdata, handles)
% hObject handle to Simulate (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global w DP
T=str2double(get(handles.inT,'string'));
P=str2double(get(handles.inP,'string'));
delta=str2double(get(handles.indelta,'string'));
Comp=str2double(get(handles.Comp,'data'));
Comp=Comp(:,1);
[w,DP]=external_Function(T,P,delta,Comp);
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!