📄 tracking_demos.m
字号:
function fig = tracking_demos()
% This is the machine-generated representation of a Handle Graphics object
% and its children. Note that handle values may change when these objects
% are re-created. This may cause problems with any callbacks written to
% depend on the value of the handle at the time the object was saved.
% This problem is solved by saving the output as a FIG-file.
%
% To reopen this object, just type the name of the M-file at the MATLAB
% prompt. The M-file and its associated MAT-file must be on your path.
%
% NOTE: certain newer features in MATLAB may not have been saved in this
% M-file due to limitations of this format, which has been superseded by
% FIG-files. Figures which have been annotated using the plot editor tools
% are incompatible with the M-file/MAT-file format, and should be saved as
% FIG-files.
load tracking_demos;
text_in_window = ['The button in the window will launch "Command Line Demos". ', ...
'These are demos that use Matlab Command Window for input and output. ', ...
'Make sure the command window is visible before running these demos. ', ...
'The first demo shows the performance limits of the distributed tracker vs. ', ...
'the centralized one using \alpha-\beta filter. ', ...
'The second demo shows the one-dimensional track initiation problem using MDL ', ...
'vs. GLRT. ', ...
'The third demo shows the S-D assignment algorithm with possibly unresolved ', ...
'measurements for track initiation, maintanance and deletion.', ...
'The demos are only for educational purpose. They may not ', ...
'represent tracking problems in real world. Comment and bug report are welcome.'];
h0 = figure('Units','points', ...
'Name', 'Command Line Demos for Three Tracking Problems', ...
'Color',[0.8 0.8 0.8], ...
'Colormap',mat0, ...
'PaperPosition',[18 180 576 432], ...
'PaperUnits','points', ...
'WindowStyle', 'Modal');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'ListboxTop',0, ...
'Position',[0 -2.25 418.5 315.75], ...
'Style','frame', ...
'Tag','Frame1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...
'Callback','info_demo', ...
'ListboxTop',0, ...
'Position',[329.25 99 64.5 18.75], ...
'String','Info', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...
'Callback','close_demo', ...
'ListboxTop',0, ...
'Position',[329.25 46.5 64.5 18.75], ...
'String','Close', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...
'Callback','dis_cen_demo', ...
'ListboxTop',0, ...
'Position',[54 252 167.25 38.25], ...
'String','Centralized vs. Distributed Filter', ...
'Tag','Pushbutton2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...
'Callback','MDL_demo', ...
'ListboxTop',0, ...
'Position',[54 205.5 167.25 38.25], ...
'String','MDL for Track Initiation', ...
'Tag','Pushbutton2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.831372549019608 0.815686274509804 0.784313725490196], ...
'Callback','SD_unresolved_demo', ...
'ListboxTop',0, ...
'Position',[54 155.25 167.25 38.25], ...
'String','S-D Assign. with Unresolved Meas.', ...
'Tag','Pushbutton2');
h1 = axes('Parent',h0, ...
'Units','pixels', ...
'CameraUpVector',[0 1 0], ...
'Color',[1 1 1], ...
'ColorOrder',mat1, ...
'Position',[206 15 176 141], ...
'Tag','Axes1', ...
'XColor',[0 0 0], ...
'YColor',[0 0 0], ...
'ZColor',[0 0 0]);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[0.4971428571428571 -0.1714285714285713 9.160254037844386], ...
'Tag','Axes1Text4', ...
'VerticalAlignment','cap');
set(get(h2,'Parent'),'XLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[-0.1657142857142857 0.4928571428571429 9.160254037844386], ...
'Rotation',90, ...
'Tag','Axes1Text3', ...
'VerticalAlignment','baseline');
set(get(h2,'Parent'),'YLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','right', ...
'Position',[-1.177142857142857 2.885714285714286 9.160254037844386], ...
'Tag','Axes1Text2');
set(get(h2,'Parent'),'ZLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[0.4971428571428571 1.05 9.160254037844386], ...
'Tag','Axes1Text1', ...
'VerticalAlignment','bottom');
set(get(h2,'Parent'),'Title',h2);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'ListboxTop',0, ...
'Position',[189.75 38.25 46.5 72], ...
'Style','text', ...
'Tag','StaticText5');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[14.25 12 266.25 129.75], ...
'Style','edit', ...
'Tag','EditText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[25.5 21 239.25 111.75], ...
'String',text_in_window, ...
'Style','text', ...
'Tag','StaticText1');
if nargout > 0, fig = h0; end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -