clear all %Field Dimensions - x and y maximum (in meters) xm = 50; ym = 50; %x and y Coordinates of the Sink sink.x =25; sink.y =-100; %Number of Nodes in the field n = 100 %Optimal Election Probability of a node %to become cluster head % p=0.05; packetLength = 2000;%数据包长度 % ctrPacketLength = 1