Table 2 - changes necessary to implement different modulator


 < code prior to this point omitted >

# modulate the carrier with the audio in an AM modulator that
# will not overmodulate, producing a DSBTC signal

v_cxr_am = v_cxr .* (1 + v_mod);

# modulate the carrier with the audio in an AM modulator that
# simulates a plate or collector modulator that cannot handle
# reverse current and that can therefore be overmodulated

#for n = 1:1024
#   if((1 + v_mod(n)) >= 0.)
#      v_cxr_am(n) = v_cxr(n) .* (1 + v_mod(n));
#   else
#      v_cxr_am(n) = 0.;
#   endif
#endfor

 < code after this point omitted >
