feventr_hop_net.m

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

M
23
字号
function varargout = feventr_hop_net(h, eventdata, handles, varargin)
% trgraph
global NET HIST TRACEFORMAT

HIST=0;
NET=1; % whole network
czyscosie;
[czy, opis]=czyopis('receive event time', h, eventdata, handles);
if czy==0
    [hopr, hop, id, stime, tr]=nethop(handles,2);
    if isempty(hop)
        hplot=wykrespusty(handles);
        zapisz_wykres(0, opis, handles);
    else        
        [tr,i]=sort(tr);
        hop=hop(i);
        [hplot,tr,hop]=rysuj(tr, hop, handles);
        zapisz_wykres([tr, hop], opis, handles);
    end
    plot_info(opis, eventdata, hplot, handles);
	xylabel('packet receive time at destination node [sec]','number of intermediate nodes forwarding packets', hplot, handles);
end
zapisz_wykres_jpg(opis,handles);

⌨️ 快捷键说明

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