我正在为我们的最后一年项目编写一个GUI,用于控制计算机动画船的风帆,并显示一个chartplotter(只有比赛区域的图片被绘制一个小箭头移动的代码覆盖)和速度以及风速及其方向。
由于在GUI中控制风帆,我想避免GUI覆盖我的句柄文件,但仍然动态更新chartplotter和速度。
如何避免覆盖句柄文件?
function varargout = chartplotter_figure(varargin)
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @chartplotter_figure_OpeningFcn, ...
'gui_OutputFcn', @chartplotter_figure_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before chartplotter_figure is made visible.
function chartplotter_figure_OpeningFcn(hObject, eventdata, handles, varargin)