📄 ena.m
字号:
function fig = ena()
% 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 ena
h0 = figure('Units','points', ...
'CloseRequestFcn','Close', ...
'Color',[0.87843137254902 0.874509803921569 0.8901960784313731], ...
'Colormap',mat0, ...
'FileName','G:\MATLABR53\work\ena.m', ...
'Name','Efficiency Network Analyser by Fabio Manganiello', ...
'NumberTitle','off', ...
'PaperPosition',[18 180 576 432], ...
'PaperUnits','points', ...
'Position',[18 30.75 612 500.25], ...
'PrintTemplate',mat1, ...
'ResizeFcn','legend(''ResizeLegend'')', ...
'Tag','Fig1', ...
'ToolBar','none');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'ForegroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
'ListboxTop',0, ...
'Position',[480 333.75 120.75 74.25], ...
'Style','frame', ...
'Tag','Frame3');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'ForegroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
'ListboxTop',0, ...
'Position',[185.25 334 120 74], ...
'Style','frame', ...
'Tag','Frame6');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'ForegroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[9 150 171 141], ...
'Style','frame', ...
'Tag','Frame4');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'ForegroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
'ListboxTop',0, ...
'Position',[9 299.25 171 192], ...
'Style','frame', ...
'Tag','Frame1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'FontWeight','demi', ...
'ListboxTop',0, ...
'Position',[14.25 474.75 51.75 12.75], ...
'String','Data input', ...
'Style','text', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback',mat2, ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[96.75 456 45 15], ...
'String','100', ...
'Style','edit', ...
'Tag','Nodi', ...
'Visible','off');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','Lambda ', ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[96.75 435 45 15], ...
'String','2', ...
'Style','edit', ...
'Tag','Lambda', ...
'Visible','off');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','Prob ', ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[96.75 435 45 15], ...
'String','10e-4', ...
'Style','edit', ...
'Tag','Prob', ...
'Visible','off');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','TauController', ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[16.5 456 45 15], ...
'String','5', ...
'Style','edit', ...
'Tag','Tau', ...
'Visible','off');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','FreqCifra ', ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[81.75 411 60 15], ...
'String','64', ...
'Style','edit', ...
'Tag','FreqCifra', ...
'Visible','off');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','LengthFrame', ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[81.5 390 60 15], ...
'String','256', ...
'Style','edit', ...
'Tag','LengthFrame', ...
'Visible','off');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Enable','off', ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[16.5 303.75 60 15], ...
'Style','edit', ...
'Tag','xCoord');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Enable','off', ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[95.25 303.75 60 15], ...
'Style','edit', ...
'Tag','yCoord');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'ForegroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
'ListboxTop',0, ...
'Position',[186 415 118.5 76.5], ...
'Style','frame', ...
'Tag','Frame2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'FontWeight','demi', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[195.75 474 86.25 11.25], ...
'String','Set TDM-FDM', ...
'Style','text', ...
'Tag','StaticText2', ...
'UserData','[ ]');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','xMax', ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[128.25 252 45 15], ...
'String','1000', ...
'Style','edit', ...
'Tag','xMax');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','StepControl', ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[68.25 212.25 45 15], ...
'String','100', ...
'Style','edit', ...
'Tag','Step');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','yMax', ...
'Enable','off', ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[128.25 232.5 45 15], ...
'String','10', ...
'Style','edit', ...
'Tag','yMax');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','yMin', ...
'Enable','off', ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[68.25 232.5 45 15], ...
'String','0', ...
'Style','edit', ...
'Tag','yMin');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[144.75 438 10.5 9.75], ...
'String','P', ...
'Style','text', ...
'Tag','Text P', ...
'Visible','off');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[63 458.25 30 10.5], ...
'String','tau [ms]', ...
'Style','text', ...
'Tag','Text tau', ...
'Visible','off');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[144.75 458.15 30 10.5], ...
'String','N', ...
'Style','text', ...
'Tag','Text N', ...
'Visible','off');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[144.75 438 30.75 9.75], ...
'String','Lambda', ...
'Style','text', ...
'Tag','Text Lambda', ...
'Visible','off');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[144.75 413.25 33 10.5], ...
'String','C [kbit/s]', ...
'Style','text', ...
'Tag','Text C', ...
'Visible','off');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[144.75 392.25 24.75 10.5], ...
'String','L [bit]', ...
'Style','text', ...
'Tag','Text L', ...
'Visible','off');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[80.25 304.5 13.5 12.75], ...
'String','X', ...
'Style','text', ...
'Tag','StaticText9', ...
'UserData','[ ]');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[159 304.5 11.25 12], ...
'String','Y', ...
'Style','text', ...
'Tag','StaticText10');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[15.75 323.25 43.5 11.25], ...
'String','Coordinates', ...
'Style','text', ...
'Tag','StaticText11');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[136.5 270 30 12], ...
'String','Max', ...
'Style','text', ...
'Tag','StaticText12');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[81.75 272.25 24 9.75], ...
'String','Min', ...
'Style','text', ...
'Tag','StaticText13');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[99.75 253.5 15 12], ...
'String','0', ...
'Style','text', ...
'Tag','StaticText14');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[19.5 213 23.25 13.5], ...
'String','Step:', ...
'Style','text', ...
'Tag','StaticText15');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[19.5 253.5 35.25 11.25], ...
'String','x range:', ...
'Style','text', ...
'Tag','StaticText16');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[19.5 234 39.75 11.25], ...
'String','y range:', ...
'Style','text', ...
'Tag','StaticText17');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'FontWeight','demi', ...
'ListboxTop',0, ...
'Position',[14.25 275.25 66 11.25], ...
'String','Draw options', ...
'Style','text', ...
'Tag','StaticText24');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'ForegroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[9 12 171 130.5], ...
'Style','frame', ...
'Tag','Frame5');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'FontWeight','demi', ...
'ListboxTop',0, ...
'Position',[16.5 128.25 57 9.75], ...
'String','Data output', ...
'Style','text', ...
'Tag','StaticText25');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[108.75 159 33.75 15], ...
'String','Grid', ...
'Style','checkbox', ...
'Tag','Grid', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[128.25 212.25 45 15], ...
'String','Hold on', ...
'Style','checkbox', ...
'Tag','holdon');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','RangeEnable', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[20.25 159.75 76.5 15], ...
'String','Enable y range', ...
'Style','checkbox', ...
'Tag','xyEnable');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','CoordEnable ', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[80.25 321.75 84 14.25], ...
'String','Enable coordinates', ...
'Style','checkbox', ...
'Tag','CoordEnable');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
'Callback','FigClear', ...
'ForegroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[144 159.75 30 15], ...
'String','Clear', ...
'Tag','FigClear');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Enable','inactive', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[27.75 107.25 51 15], ...
'Style','edit', ...
'Tag','Utilizzazione');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[18 109.5 9 11.25], ...
'String','S=', ...
'Style','text', ...
'Tag','StaticText26');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[18 84.75 15.75 12.75], ...
'String','a=', ...
'Style','text', ...
'Tag','StaticText27');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Enable','inactive', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[27.75 84 51 15], ...
'Style','edit', ...
'Tag','aCoef');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[84.75 110.25 16.5 10.5], ...
'String','Ao=', ...
'Style','text', ...
'Tag','StaticText');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Enable','inactive', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[101.25 108 51 15], ...
'Style','edit', ...
'Tag','Aofferto');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[153.75 110.25 18.75 11.25], ...
'String','bit/s', ...
'Style','text', ...
'Tag','StaticText28');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -