function - Generating Radio propagation pattern in matlab? -
i want implement part of article. following explanations expressed in it. "we evaluate performance of proposed localization method @ varying degree of irregularity, doi defines radio propagation irregularity per unit degree change in direction. radio propagation irregularity model used in paper shown follows:"
i have tried write code of part doesn't work , can't result.
function coeff=k(i) rand=rand(1,100); doi=0.02; if(i==0) coeff=1; %terminating condition else while i<360 coeff=k(i-1)+rand*doi; %doi=[0.01,0.02,0.03,0.04,0.05] end end end
and following figure has been shown in article doi=0.02...i need output this, how can it
thanks in advance.
it if post link article, in case generate circular path noise.
doi=0.05; phi = linspace(0,2*pi,360); %360 angles r=-doi+2*doi*rand([1,360]); %random values between -doi , doi r=cumsum(r)+1; %add them make path, mean value 1 while abs(r(end)-r(1))> doi %start , finish must not far away eachother r=-doi+2*doi*rand([1,360]); r=cumsum(r)+1; end plot(r.*cos(phi),r.*sin(phi),'r',cos(phi),sin(phi),'--b') axis equal
Comments
Post a Comment