hop_nr.m
来自「good for who wants it」· M 代码 · 共 19 行
M
19 行
function varargout = hop_nr(handles)
% trgraph
% shows information about number of hops between current and other node
global PREC
[hopr, hopf,id,st,rt]=wezhop(handles,0);
if isempty(hopr)
set(handles.avghopr, 'String', 'N/A');
else
hopr=sum(hopr)/length(hopr);
set(handles.avghopr, 'String', num2str(hopr,PREC));
end
if isempty(hopf)
set(handles.avghopf, 'String', 'N/A');
else
hopf=sum(hopf)/length(hopf);
set(handles.avghopf, 'String', num2str(hopf,PREC));
end
zapisz_info(handles);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?