資源簡介
經典的基于位置的路由協議,用matlab語言記性編寫。
代碼片段和文件信息
%%//////////////////////////////////////
%%?GPSR
%%http://www.docin.com/p-55831688.html
%%
%%1000m*1000m
%%2009
%%by?caolei
%%////////////////////////////////////
%%input
%%
%%////////////////////////////////////
%%output
%%
%%////////////////////////////////////
%%idea
%%
%%assign?all?sensor?node?to?send?a?message?to?destination
%%/////////////////////////////////////////////////////////
clear?all
area_l?=?1000;
area_w?=?1000;
R?=?100;???????%radio?range
num_rout_track=7;
%---------------------------------------------------------
%num_node?=?[30507090110]?;??%?number?of?nodes
num_node?=?300;??
%---------------------------------------------------------
%for?i_num_sink=1:length(num_sink)
????%?des_x(i_num_sink)?=?area_l*0.9+area_l+0.1*rand(11);??
????%?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????11699??2012-01-22?17:57??gprs.m
-----------?---------??----------?-----??----
????????????????11699????????????????????1
- 上一篇:matlab塔板數
- 下一篇:Matlab中用逆濾波和維納濾波恢復模糊圖像
評論
共有 條評論