Compiled GUIDE Gui Error (Line 42) when closing program
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Jan
el 15 de Nov. de 2014
It is important to show us the line, which causes the error. Guessing that the problem is anywhere else might be bold.
Respuestas (0)
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!