THD measurement using .meas instruction

Good evening

In order to compute THD a .four instruction is needed. It returns FFT results (magnitude, phase) , which can be further postprocessed and plotted (in conjunction with .step) using .meas four command.
It also returns THD value which as far as I’m aware can’t be accesed using .meas instruction; therefore can’t be plotted.

Is there any way to plot THD value as a function of stepped parameter ?

Single transistor distortion
Disto.qsch (6.3 KB)

1 Like