Substitutions in Simple Analog Modulation Example 
| Modification of Process 
 | Modifications in the Code 
 | 
| Set the carrier signal's initial phase to phs, measured in radians.
 | y = amodce(x,[Fs phs],'amdsb-tc');
 z = ademodce(y,[Fs phs],'amdsb-tc');
 | 
| Use a lowpass filter after demodulating. numanddenare row vectors that give the coefficients, in descending order, of the numerator and denominator of the filter's transfer function.
 | z = ademodce(y,Fs,'amdsb-tc',0,num,den);
 
 (For other demodulation methods, the 0in the statement above would be unnecessary. See the reference page forademodcefor details.)
 | 
| (AM-SSB only) Use a Hilbert filter in the time domain. numanddenare as above.
 | y = amodce(x,Fs,'amssb/time',num,den);
 z = ademodce(y,Fs,'amssb');
 | 
| (AMDSB only) Use a Costas phase-locked loop. 
 | z = ademodce(y,Fs,'amdsb-tc/costas');
 or
 y = amodce(x,Fs,'amdsb-sc');
 z = ademodce(y,Fs,'amdsb-sc/costas');
 | 
| (AMDSB-TC only) Shift the signal values by offsetbefore modulating and after demodulating.
 | y = amodce(x,Fs,'amdsb-tc',offset);
 z = ademodce(y,Fs,'amdsb-tc',offset);
 |