helperHarmonicDistortion
helperHarmonicDistortionADC Helper function for HarmonicDistortionExample.m
Calling Sequence
outputVoltage=helperHarmonicDistortion(inputVoltage)
Parameters
inputVmax:
Maximum operating voltage times the sinusoidal signal.
Description
Analizing the harmonic distortion of a weakly non-linear system in the presence of noise....
Examples
VmaxPk = 2;
Fi = 2000;
Fs = 44.1e3;
Tstop = 50e-3;
t = 0:1/Fs:Tstop;
inputVmax = VmaxPk*sin(2*%pi*Fi*t);
outputVmax = helperHarmonicDistortion(inputVmax);
plot(t, outputVmax)
replot([0,-2.5,0.005,2.5])
xlabel('Time')
ylabel('Output Voltage')
title('Amplifier output')