Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - ns-3 wsn
Search - ns-3 wsn - List
WSN LEACH协议的NS-2仿真代码-WSN LEACH protocol NS-2 Simulation Code
Date : 2025-07-09 Size : 23kb User : 赵端

本文着重介绍了基于NS-3的无线 传感器网络的物理层仿真模块的设计,搭建了无线传感器网络仿真平台,使一个简单的例子得以在上面运行,并给出 了仿真结果。该仿真平台可以用于对无线传感器网络的深入研究与探讨,有助于无线传感器网络的优化设计、缩短系 统的开发周期。-This paper introduces NS-3-based wireless sensor network simulation module physical layer design, build a wireless sensor network simulation platform that enables a simple example to run in the top, and the simulation results. The simulation platform can be used for wireless sensor networks in-depth study and discussion, will help optimize the design of wireless sensor networks, shorten the development cycle.
Date : 2025-07-09 Size : 346kb User : lv

DL : 0
M=63 J=(M-1)/2 Wp=0.5*pi Ws=0.6*pi Np=100 Ns=100 weightp=1 weights=100 通带和阻带的加权系数 WpN=linspace(0,Wp,Np) WsN=linspace(Ws,pi-0.05,Ns) Wm=[WpN WsN] p=[ones(1,50),ones(1,50)/2] d=[p,zeros(1,Ns)] W=diag([weightp*ones(1,Np),weights*ones(1,Ns)]) C=cos(Wm*[0:J]) Q=diag(cos(Wm*0.5)) g=(W*Q*C)\(W*d) g=g h=(g(J:-1:2)+g(J+1:-1:3))/4 h=[g(J+1)/4 h g(1)*0.5+g(2)/4] h=[h fliplr(h)] W=linspace(0,pi-0.1,512) H=freqz(h,1,W) plot(W/pi,20*log10(abs(H))) -filter design
Date : 2025-07-09 Size : 1kb User : 李天
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.