Compiled GUIDE Gui Error (Line 42) when closing program
1 view (last 30 days)
Show older comments
Hello!
Compiled gui works, but when program is closed, an error always pops up: "H must be the handle to a figure or a figure descendant. Error in => dynovibe_2_1.m at Line 42." Since Line 42 in a this is in the nargout if statement for the "DO NOT EDIT" portion, I am guessing that it's a problem with the Output Function, reproduced below:
% --- Outputs from this function a re returned to the command line.
function varargout = dynovibe_2_1_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
handles = guidata(hObject);
% Get default command line output from handles structure
h_d = handles.h_dly ;
r_d = handles.r_dly ;
final_ppv = handles.ppv_values ;
final_fft = handles.fft_values ;
varargout{1} = h_d; %jumbolo; %output;
varargout{2} = r_d; %handles.h_dly;
varargout{3} = final_ppv;
varargout{4} = final_fft;
delete(handles.figure1);
I'm really not sure what outputs mean for a Windows compiled Matlab program anyway. Any suggestions to clean this up? Thanks!
Doug Anderson
2 Comments
Jan
on 15 Nov 2014
It is important to show us the line, which causes the error. Guessing that the problem is anywhere else might be bold.
Answers (0)
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!