I want to sweep the voltage source `V2` and plot t...
# analog-design
z
I want to sweep the voltage source
V2
and plot the output impedance (
Rout
) of a circuit, where
Rout
is defined as
Vout / Iout
, in an AC analysis (not DC). Specifically: • X-Axis: Voltage of the source
V2
(swept over a range). • Y-Axis: Output impedance
Rout = v(out) / i(V2)
calculated during the sweep. how can i do this in ngspice ?
l
.dc v2 10m 2 10m .control run let rout = deriv(vout)/deriv(i(v2)) let va = i(v2)/deriv(i(v2)) plot rout plot va .endc
👍 1
1
z
@Luis Henrique Rodovalho thank yo so much you saved me a lot of time