📄 fevents_hop.m
字号:
function varargout = fevents_hop(h, eventdata, handles, varargin)
% trgraph
global NET AKTWEZ STARTWEZ HIST DC TRACEFORMAT
if AKTWEZ~=STARTWEZ
NET=0; % whole network
czyscosie;
HIST=3; % ON if CHECK(2)==0
[czy, opis]=czyopis('send event time', h, eventdata, handles);
HIST=0;
if czy==0
[hopr, hop, id, stime, tr]=wezhop(handles,2);
if isempty(hop)
hplot=wykrespusty(handles);
zapisz_wykres(0, opis, handles);
else
[hplot,stime,hop]=rysuj(stime, hop, handles);
zapisz_wykres([stime, hop], opis, handles);
end
plot_info(opis, eventdata, hplot, handles);
xylabel(['packet send time at node ', num2str(AKTWEZ),' [sec]'],['number of intermediate nodes forwarding packets sent from node ', ...
num2str(AKTWEZ),' to node ', num2str(STARTWEZ),' [sec]'], hplot, handles);
end
else
NET=0; % whole network
czyscosie;
HIST=3; % ON if CHECK(2)==0
[czy, opis]=czyopis('send event time', h, eventdata, handles);
HIST=0;
if czy==0
hplot=wykrespusty(handles);
zapisz_wykres(0, opis, handles);
plot_info(opis, eventdata, hplot, handles);
xylabel(['packet send time at node ', num2str(AKTWEZ),' [sec]'],['number of intermediate nodes forwarding packets sent from node ', ...
num2str(AKTWEZ),' to node ', num2str(STARTWEZ),' [sec]'], hplot, handles);
end
end
zapisz_wykres_jpg(opis,handles);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -