I have an array of number.

I am looking at the difference between each of the following number of the array. So each time a difference is found between numbers of the array that is larger than 0. Then the diffference between the other 2 must be verified?.

How can I write this mathematically with equations. I have a matkab code of it.

---------------------------------

MD=10; % measurement duration in se

Fs=length(data)/MD; % sampling frequency in Hz

for n=1:length(TH),

d_fad=d_ref < TH(n);

num_fad(n)=sum(diff(d_fad)>0);

LCR(n)= num_fad(n)/MD; % calculates the LCR in 1 sec

AFD(n)=sum(d_fad)/Fs/num_fad(n); % calculated the avergae fade duration in in sec

-----------

How can I mathematically write a formula for AFD and LCR?

More Vikesh Shivik's questions See All
Similar questions and discussions