This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| clear all; close all; | |
| Nveh=500;%Number of vehicles | |
| xs=450;ys=313;xd=28;yd=650; | |
| D=sqrt((xs-xd)^2+(ys-yd)^2); | |
| dMax = 100; dMin = 80; % next handover vehicle's threshold distance | |
| Rb=27*10^6; | |
| C=3*10^8; | |
| N=1024; | |
| tf=N/Rb; | |
| dhop=[]; |