hop_nr_txt.m

来自「good for who wants it」· M 代码 · 共 25 行

M
25
字号
function varargout = hop_nr_txt(h, eventdata, handles, varargin)
% trgraph
% shows text concerning number of hops between current and other node
global fig

if strcmp(get(handles.hopnr, 'Checked'), 'on')
    set(handles.hopnr, 'Checked', 'off');
    set(handles.frame6, 'Visible', 'off');
    set(handles.avgtext, 'Visible', 'off');
    set(handles.avghoprtxt, 'Visible', 'off');
    set(handles.avghopftxt, 'Visible', 'off');
    set(handles.avghopr, 'Visible', 'off');
    set(handles.avghopf, 'Visible', 'off');
else    
    thandles=guihandles(fig);
    set(thandles.directcon, 'Checked', 'off');
    set(handles.hopnr, 'Checked', 'on');
    hop_nr(handles);
    set(handles.frame6, 'Visible', 'on');
    set(handles.avgtext, 'Visible', 'on');
    set(handles.avghoprtxt, 'Visible', 'on');
    set(handles.avghopftxt, 'Visible', 'on');
    set(handles.avghopr, 'Visible', 'on');
    set(handles.avghopf, 'Visible', 'on');
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?