I wand to simulate rayleigh fading in my phy layer. i want to know how to go about it .....and want to calculate pathloss using friis eqn how to simulate it....
Use Rayleighchan MATLAB function, all the details on it can be found in MATLAB help. As for Friis equation, it is a deterministic equation, just substitute in it to get the power loss and then decrease the amplitude of your signal proportional to the calculated power loss.