suma_bajt_gen_net.m
来自「good for who wants it」· M 代码 · 共 33 行
M
33 行
function varargout = suma_bajt_gen_net(h, eventdata, handles, varargin)
% trgraph
global C1 C2 C3 C6 C7 C9 C13 TRACEFORMAT MAC NET HIST
HIST=0;
NET=1;
czyscosie;
[czy, opis]=czyopis('time', h, eventdata, handles);
if czy==0
typ=typstart(handles,0); % packet type
if TRACEFORMAT==1
wsp=C1=='+' & C3==C9 & typ;
elseif TRACEFORMAT==2
if MAC==0
wsp4=send_mac_0;
elseif MAC==1
wsp4=C1=='s';
end
wsp=wsp4 & typ;
end
if isempty(find(wsp))
hplot=wykrespusty(handles);
zapisz_wykres(0, opis, handles);
else
x=C2(wsp);
y=cumsum(C6(wsp));
[hplot,x,y]=rysuj(x, y, handles);
zapisz_wykres([x, y], opis, handles);
end
plot_info(opis, eventdata, hplot, handles);
xylabel('generate event time [sec]','cumulative sum of generated bytes', hplot, handles);
end
zapisz_wykres_jpg(opis,handles);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?