For the calculation of the Average Fade Duration (AFD) and Level Crossing Rate(LCR) I need an matlab code that can calculate the AFD and LCR for different RMS values from -15 up till, 5 dB and gives me an plot in the end of AFD versus the different RMS values and LCR versus different RMS values.
I have already tried a part, but since I am new to matlab it is very difficult for me