hello, i need the code for simulating the probability density function of rayleigh channel on matlab.
ofcourse i know that we have an inbuilt function called "raylpdf" but it takes the variance as an argument ..i dont want to do that ...
my problem is, i have a sample space from that i want the density function ..
help me please ...
A bit of more detail will help us to have the whole picture of your problem. It is not clear for me what kind of experiment you are carrying out. I am doubful about wheather you need Rayleigh distributed random values or you are trying to fit some experimental values to a Rayleigh distribution.
Another possibility is that you have a given "sample space" and you want to know which Rayleigh distribution can better contain you sample space??, in this case it is difficult because referring to the figure which appears in https://www.mathworks.com/access/he...=1&ResultCount=10&query=raylpdf&submit=Search
we can observe that the right hand side of the pdf has a long tail and probably goes to infinity. These are wild guesses, as I said before, more info from your side is necessary