% % This function calculates the bandwidth of the signal x % that contains 100*threshold % of the signal energy. % Example threshold = 0.99 --> Bandwidth( x, f_s, 0.99 ) calculates the bandwidth which contains 99% of the energy % x is a time waveform sampled at rate f_s.