Send request packet
7 ビュー (過去 30 日間)
古いコメントを表示
I have created a node and have found its neighbours
for ex lets us assume the source node is 6 ,the neighbours are 4, 8 ,12
please tell how to process the below
type i event is to send a request packet
% create a type-1 event from Source to each neighbour
% sort events array by time of events (using sortrows)
0 件のコメント
回答 (1 件)
Walter Roberson
2012 年 4 月 6 日
current_node = 6;
event_type = 1;
for N = node_definitions(current_node).neighbours
events = create_event(events, event_type, N, current_node);
end
events = sortrow(events);
2 件のコメント
Walter Roberson
2012 年 4 月 7 日
My apologies for not correctly guessing your exact variable names and data structures: with the holiday, the Psychic Friends Hotline wasn't available for consultation.
参考
カテゴリ
Help Center および File Exchange で Dates and Time についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!