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!