⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 events_delay.m

📁 good for who wants it
💻 M
字号:
function varargout = events_delay(h, eventdata, handles, varargin)
% trgraph
global NET AKTWEZ STARTWEZ HIST DC fig DELAY

thandles=guihandles(fig);
DELAY=1;
DC=1;
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
        [opoz,id,stime,tr]=wezdel(handles,1);
        if isempty(opoz)
            hplot=wykrespusty(handles);
            zapisz_wykres(0, opis, handles);
        else         
            [hplot,stime,opoz]=rysuj(stime, opoz, handles);
            zapisz_wykres([stime, opoz], opis, handles);
        end
        plot_info(opis, eventdata, hplot, handles);
	xylabel(['packet send time at node ', num2str(AKTWEZ), ' [sec]'],['delay between node ', ...
	num2str(AKTWEZ),' and 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]'],['delay between node ', ...
	num2str(AKTWEZ),' and node ', num2str(STARTWEZ), ' [sec]'], hplot, handles);    
    end
end
DC=0;
DELAY=0;
zapisz_wykres_jpg(opis,handles);

⌨️ 快捷键说明

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