noise_est.m
Upload User: xxy784
Upload Date: 2015-01-28
Package Size: 726k
Code Size: 0k
Development Platform:

Matlab

  1. %noise estimate
  2. function G_n=noise_est(gain,G_n)
  3. global Cup Cdown
  4. if gain>G_n+Cup
  5.    G_n=G_n+Cup;
  6. elseif gain<G_n-Cdown
  7.    G_n=G_n-Cdown;
  8. else
  9.    G_n=gain;
  10. end
  11. if G_n<10
  12.    G_n=10;
  13. elseif G_n>20
  14.    G_n=20;
  15. end