Compiled GUIDE Gui Error (Line 42) when closing program
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
Jan
2014-11-15
It is important to show us the line, which causes the error. Guessing that the problem is anywhere else might be bold.
回答(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!