Using algebraic expressions (right clicking in trace window header to enter arbitrary formulas), I am trying to plot the gain over time of a simple BJT-based common-emitter amplifier.
As is well known, the output signal of such an amplifier is phased-shifted by about 180⁰ from the input signal, and therefore, plotting the quantity abs(V(vout) / V(vin))
shows something that has nothing to do with the actual gain of the amp.
What would be ideal would be to read the voltage of a node at a specific point in time.
Something like:
abs(V(vout) / Voltage_at_time(vin, current_time - delay))
Does the V() function have an at_time
kind of argument (I couldn't find the docs for it)?
If not, is there another way?
[EDIT]: To clarify, here's a snapshot of the two signals (Input is Vs, Output is Vo):