📄 rangecalculation_fig.m
字号:
function fig = rangecalculation_fig()
% 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 rangecalculation_fig
% h0 = figure('Color',[1 1 1], ...
% 'Colormap',mat0, ...
h0 = figure( ...
'FileName','d:\chap3\programs\rangecalculation', ...
'PaperPosition',[18 180 576 432], ...
'PaperUnits','points', ...
'Position',[486 189 622 614], ...
'Tag','Fig1', ...
'ToolBar','none');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontSize',9, ...
'ListboxTop',0, ...
'Position',[378 438 81.75 15.75], ...
'String','Radar Type', ...
'Style','text', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','radar_type = 0.0;', ...
'FontSize',9, ...
'ListboxTop',0, ...
'Position',[378 422.25 82.5 16.5], ...
'String','CW', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','radar_type = 1;', ...
'FontSize',9, ...
'ListboxTop',0, ...
'Position',[378 405.75 82.5 16.5], ...
'String','Pulsed', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback',mat1, ...
'FontSize',9, ...
'ListboxTop',0, ...
'Position',[376.5 285.75 82.5 16.5], ...
'String','Go', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','Close all', ...
'FontSize',9, ...
'ListboxTop',0, ...
'Position',[377.25 267 82.5 16.5], ...
'String','Quit', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','out_option = 0;', ...
'FontSize',9, ...
'ListboxTop',0, ...
'Position',[379.5 349.5 82.5 16.5], ...
'String','SNR - dB', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','out_option = 1;', ...
'FontSize',9, ...
'ListboxTop',0, ...
'Position',[379.5 331.5 82.5 16.5], ...
'String','Range - Km', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontSize',9, ...
'ListboxTop',0, ...
'Position',[378.75 366 84 15.75], ...
'String','Output Desired', ...
'Style','text', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'FontSize',9, ...
'ListboxTop',0, ...
'Position',[8.25 116.25 69.75 16.5], ...
'String','peak power - W', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','pt = str2num(get(gco,''string''));', ...
'ListboxTop',0, ...
'Position',[77.25 116.25 57.75 16.5], ...
'String','1500', ...
'Style','edit', ...
'Tag','EditText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','tau = str2num(get(gco,''string''));', ...
'ListboxTop',0, ...
'Position',[77.25 81 57.75 16.5], ...
'String','2', ...
'Style','edit', ...
'Tag','EditText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'ListboxTop',0, ...
'Position',[8.25 81 69.75 16.5], ...
'String','tau - msec', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','fr = str2num(get(gco,''string''));', ...
'ListboxTop',0, ...
'Position',[76.5 48.75 57.75 16.5], ...
'String','10', ...
'Style','edit', ...
'Tag','EditText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'ListboxTop',0, ...
'Position',[8.25 48 69.75 16.5], ...
'String','PRF - Hz', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','gt = str2num(get(gco,''string''));', ...
'ListboxTop',0, ...
'Position',[76.5 6.75 57.75 16.5], ...
'String','20', ...
'Style','edit', ...
'Tag','EditText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'ListboxTop',0, ...
'Position',[8.25 6.75 69.75 16.5], ...
'String','Gt - dB', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[187.5 7.5 69.75 16.5], ...
'String','Te - Kelvins', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','te = str2num(get(gco,''string''));', ...
'ListboxTop',0, ...
'Position',[257.25 7.5 57.75 16.5], ...
'String','300', ...
'Style','edit', ...
'Tag','EditText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[192.75 47.25 69.75 16.5], ...
'String','RCS - m square', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback',mat2, ...
'ListboxTop',0, ...
'Position',[262.5 47.25 57.75 16.5], ...
'String','.1', ...
'Style','edit', ...
'Tag','EditText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[192.75 79.5 69.75 16.5], ...
'String','frequency - Hz', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','freq = str2num(get(gco,''string''));', ...
'ListboxTop',0, ...
'Position',[262.5 80.25 57.75 16.5], ...
'String','5.6e9', ...
'Style','edit', ...
'Tag','EditText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','gr = str2num(get(gco,''string''));', ...
'ListboxTop',0, ...
'Position',[262.5 115.5 57.75 16.5], ...
'String','20', ...
'Style','edit', ...
'Tag','EditText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[192 115.5 69.75 16.5], ...
'String','Gr - dB', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[331.5 9.75 69.75 16.5], ...
'String','range - Km', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback',mat3, ...
'ListboxTop',0, ...
'Position',[399.75 9.75 57.75 16.5], ...
'String','250', ...
'Style','edit', ...
'Tag','EditText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'ListboxTop',0, ...
'Position',[331.5 49.5 69.75 16.5], ...
'String','(SNR)o - dB', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','snro = str2num(get(gco,''string''));', ...
'ListboxTop',0, ...
'Position',[400.5 48 57.75 16.5], ...
'String','15', ...
'Style','edit', ...
'Tag','EditText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'ListboxTop',0, ...
'Position',[333 81 69.75 16.5], ...
'String','losses - dB', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','loss = str2num(get(gco,''string''));', ...
'ListboxTop',0, ...
'Position',[401.25 80.25 57.75 16.5], ...
'String','15', ...
'Style','edit', ...
'Tag','EditText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','f = str2num(get(gco,''string''));', ...
'ListboxTop',0, ...
'Position',[403.5 115.5 57.75 16.5], ...
'String','7', ...
'Style','edit', ...
'Tag','EditText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'ListboxTop',0, ...
'Position',[334.5 116.25 69.75 16.5], ...
'String','noise figure - dB', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','pcw = str2num(get(gco,''string''));', ...
'ListboxTop',0, ...
'Position',[404.25 143.25 57.75 16.5], ...
'String','1000', ...
'Style','edit', ...
'Tag','EditText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'ListboxTop',0, ...
'Position',[334.5 143.25 69.75 16.5], ...
'String','Pcw - W', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'ListboxTop',0, ...
'Position',[192.75 142.5 69.75 16.5], ...
'String','Ti - m sec', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','time_ti = str2num(get(gco,''string''));', ...
'ListboxTop',0, ...
'Position',[262.5 142.5 57.75 16.5], ...
'String','10', ...
'Style','edit', ...
'Tag','EditText1');
h1 = axes('Parent',h0, ...
'Units','pixels', ...
'Box','on', ...
'CameraUpVector',[0 1 0], ...
'Color',[1 1 1], ...
'ColorOrder',mat4, ...
'Position',[54 265 432 328], ...
'Tag','Axes1', ...
'XColor',[0 0 0], ...
'XGrid','on', ...
'YColor',[0 0 0], ...
'YGrid','on', ...
'ZColor',[0 0 0], ...
'ZGrid','on');
h2 = line('Parent',h1, ...
'Color',[0 0 0], ...
'Tag','Axes1Line1', ...
'XData',mat5, ...
'YData',mat6);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[498.8399071925754 -76.60550458715596 17.32050807568877], ...
'String','Range - Km', ...
'Tag','Axes1Text4', ...
'VerticalAlignment','cap');
set(get(h2,'Parent'),'XLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[-67.28538283062645 -25.41284403669724 17.32050807568877], ...
'Rotation',90, ...
'String','SNR - dB', ...
'Tag','Axes1Text3', ...
'VerticalAlignment','baseline');
set(get(h2,'Parent'),'YLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','right', ...
'Position',mat7, ...
'Tag','Axes1Text2', ...
'Visible','off');
set(get(h2,'Parent'),'ZLabel',h2);
h2 = text('Parent',h1, ...
'Color',[0 0 0], ...
'HandleVisibility','off', ...
'HorizontalAlignment','center', ...
'Position',[498.8399071925754 21.92660550458717 17.32050807568877], ...
'Tag','Axes1Text1', ...
'VerticalAlignment','bottom');
set(get(h2,'Parent'),'Title',h2);
if nargout > 0, fig = h0; end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -