资源简介
无线传感器网络节点定位源代码,基于matlab,并配有介绍文档。
代码片段和文件信息
%any problem contact at zhenzhongdong@gmail.com(valid before 7.1.2010)
%Zenzon Don 2010.5.3
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clear;
clc;
close all;
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%~~~~~~~~~~~~~~~~~~~~~~~布置节点,画节点分布图~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cd ‘Deploy Nodes‘
square_random(10003000.2);%布置节点 GPS误差为0
%square_random(10003000.230) %GPS误差为30m
%C_random([1000300300700]2400.2);
%square_regular(10001000.10.2);
%C_regular([1000300300700]1000.10.2);
Distribution_Of_WSN;%画节点分布图
cd ..;
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% ~~~~~~~~~~~~ 给定通信半径,选择通信模型,计算邻居关系,画邻居关系图~~~~~~~~~~
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cd ‘Topology Of WSN‘;
comm_r=200;%给定通信半径
%~~~~~~~~~~~~~~~~~~选择通信模型~~~~~~~~~~~~~~~~~
model=‘Regular Model‘;
%model=‘Logarithmic Attenuation Model‘;
%disp(‘时间可能较长...‘);model=‘DOI Model‘;DOI=0.015;
%disp(‘时间可能较长...‘);model=‘RIM Model‘;DOI=0.01;
%~~~~~~~~~~~~~~~~~~计算邻居关系~~~~~~~~~~~~~~~~~
anchor_comm_r=1;
%anchor_comm_r参数只在APIT中更改,其他的算法统一设置为1。
%它表示锚节点通信半径是未知节点通信半斤的倍数。
%APIT针对的WSN是异构的,锚节点通信半径比未知节点的大。
try
calculate_neighbor(comm_ranchor_comm_rmodelDOI);
catch
calculate_neighbor(comm_ranchor_comm_rmodel);
end
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Topology_Of_WSN;%画邻居关系图
cd ..;
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~选择定位算法~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%cd Centroid;Centroid(200.9);%Centroid_second(200.9);%Centroid_third(...
%cd ‘Bounding Box‘;Bounding_Box;%Bounding_Box_second;%Bounding_Box_third;
%cd ‘Grid Scan‘;Grid_Scan(0.1*comm_r);%Grid_scan_second(...
%cd RSSI;RSSI;%RSSI_second;%RSSI_third;
%~~~~~~~~~~~~~~~~~~~~~~~~
%cd ‘DV-hop‘;DV_hop;
%cd Amorphous;Amorphous;
%cd APIT;APIT(0.1*comm_r);
dist_available=true;cd ‘MDS-MAP‘;MDS_MAP(dist_available);
cd ..
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%~~~~~~~~~~~~~~~~~~~~~~~~~~~计算定位误差,画定位误差图~~~~~~~~~~~~~~~~~~~~~~~
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cd ‘Localization Error‘
calculate_localization_error;
cd ..;
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2896 2010-05-12 23:21 Localization\Amorphous\Amorphous.m
文件 815070 2010-04-25 20:59 Localization\Amorphous\Organizing a Global Coordinate System from Local Information on an Ad Hoc Sensor Network.pdf
文件 3714 2010-06-04 11:28 Localization\APIT\APIT.m
文件 3434 2010-06-04 11:28 Localization\APIT\PPIT.m
文件 277526 2011-03-03 19:30 Localization\APIT\Range-Free Localization Schemes for Large Scale.pdf
文件 1670 2010-05-08 20:01 Localization\Bounding Box\Bounding_Box.m
文件 2050 2010-05-08 20:01 Localization\Bounding Box\Bounding_Box_second.m
文件 2184 2010-05-08 20:01 Localization\Bounding Box\Bounding_Box_third.m
文件 238713 2010-04-23 15:46 Localization\Bounding Box\Distributed Localization in Wireless Ad Hoc.pdf
文件 1843830 2010-05-06 18:57 Localization\Bounding Box\readme.bmp
..A.SH. 5120 2010-05-18 11:25 Localization\Bounding Box\Thumbs.db
文件 1574 2010-05-15 14:09 Localization\Centroid\Centroid.m
文件 1886 2010-05-15 17:44 Localization\Centroid\Centroid_second.m
文件 2103 2010-05-15 17:44 Localization\Centroid\Centroid_third.m
文件 476056 2011-02-28 11:04 Localization\Centroid\GPS-less Low-Cost Outdoor Localization.pdf
文件 20021 2010-06-09 13:28 Localization\Deploy Nodes\coordinates.mat
文件 1672 2010-05-15 19:44 Localization\Deploy Nodes\C_random.m
文件 3246 2010-05-15 19:44 Localization\Deploy Nodes\C_regular.m
文件 1043 2010-05-06 16:56 Localization\Deploy Nodes\Distribution_Of_WSN.m
文件 236278 2010-05-05 16:09 Localization\Deploy Nodes\Figures\C_random.bmp
文件 236278 2010-05-05 16:10 Localization\Deploy Nodes\Figures\C_regular.bmp
文件 236278 2010-05-05 16:08 Localization\Deploy Nodes\Figures\square_random.bmp
文件 236278 2010-05-05 16:07 Localization\Deploy Nodes\Figures\square_regular.bmp
..A.SH. 20480 2010-05-18 11:25 Localization\Deploy Nodes\Figures\Thumbs.db
文件 4046 2010-05-15 19:50 Localization\Deploy Nodes\readme.txt
文件 1320 2010-05-15 19:44 Localization\Deploy Nodes\square_random.m
文件 2323 2010-05-15 19:45 Localization\Deploy Nodes\square_regular.m
文件 204998 2011-02-23 14:00 Localization\DV-hop\DV ba
文件 2552 2010-05-12 16:52 Localization\DV-hop\DV_hop.m
文件 3373230 2008-07-25 10:23 Localization\Grid Scan\A Distributed Localization Scheme for Wireless Sensor Networks with Improved Grid-Scan and Vector-ba
............此处省略88个文件信息
- 上一篇:自控实验报告
- 下一篇:mha格式图片转为jpg格式
相关资源
- 自控实验报告
- 谱聚类算法对数据点进行分类
- 基于MATLAB的16QAM仿真代码
- 基于Matlab的IR-UWB无线通信信道模型仿
- 最优化方法及其MATLAB程序设计
- BP车牌检测.zip
- 各种最小二乘法总结算法+matlab源码
- MATLAB的SVM安装包drtoolbox_libsvm-3.17
- 在matlab下调用kinectv2的完整功能
- matlab子空间聚类
- 图像去除干扰条纹
- 模糊车牌识别
- MATLAB程序设计与应用(刘卫国编)课
- 高光谱图像在matlab里的读入与显示
- matlab-bgl 4.0.1
- MATLAB聚类分析工具箱
- matlab robotics toolbox
- SVM算法对MNIST数据集分类
- 鱼雷控制系统计算机辅助分析设计与
- 抗干扰仿真 matlab 源码
- 信号与系统大作业 声音信号的频谱分
- matlab 蒙特卡罗
- LBF和LDF模型的matlab程序,用于图像分
- surf的matlab实现
- c均值聚类matlab算法和程序
- 图像加密算法实现 matlab
- PSAT-2.1.10最新版
- GPS信号捕获跟踪的MATLAB仿真,里面有
- 编写MATLAB函数 图像处理实验报告
- 基于MATLAB的OFDM通信系统模型的仿真毕
评论
共有 条评论