From: Walter Roberson on
Muhammad wrote:

> hi there, i am doing a project on collaborative on energy detection in
> collaborative spectrum sensing in cognitive radio and i have done
> simulation for independent log normal shadowing and rayleigh fading but
> in collaborative spectrum sensing rayleigh fading simulation is done but
> spatially correlated log normal shadowing i dont understand how to do
> it. The formula that i have used in my silmulation for independent log
> normal shadowing is σ=0.1log(10) σ2 but with in
> collaboarive spectrum sensing the correaltion function R(d)=e^-ad comes
> in spatially correlated log normal shadowing with a being constant with
> different values for urband and suburban value and d bieng the distance
> b/w users but i dont know how do the simulation where should the
> correlation function comes pls can anyone help i my code i have use chi
> square distribution for probability of false alarm and non central chi
> square di for prob of detection.

Perhaps I am just missing something, but you appear to be asking algorithm
questions rather than Matlab questions.

Perhaps you should explore the tried-and-true development technique, "Stepwise
Refinement".