I am trying to understand the automatic gain control block provided by the communications toolbox. The documentation is here: Documentation
My questions are in regards to two of the configurable parameters, the DesiredOutputPower and MaxPowerGain.
Given a value X for DesiredOutputPower, how does one compute what the reference value A is?
Given a value X for MaxPowerGain, how does one compute what the upper limit for g is?
If DesiredOutputPower = 2 then A = 0.693147180559945
If DesiredOutputPower = 6 then A = 1.791759469228055
If MaxPowerGain = 10 then the upper limit for g is 1.15129255
If MaxPowerGain = 60 then the upper limit for g is 6.90775527
The documentation in regard to DesiredOutputPower states:
Specify the desired output power level as a real positive scalar. The power is measured in Watts referenced to 1 ohm. The default is 1.
And in regard to MaxPowerGain:
Maximum power gain in decibels
Specify the maximum gain of the AGC in decibels as a positive scalar. The default is 60.
How are these numbers determined? What are the formulas? I've been trying to apply the formulas I read here: The dB in Communications but I havent been able to figure it out, please help.