Creates the AM modulation of the amplitude signal x with carrier frequency fc.
Inputs:
Output:
Demo
demo ammod
See also: amdemod, fmmod, fmdemod.
The following code
## carrier Frequency fc = 200; ## sampling frequency fs= 4000; ## time Duration t = (0 : 1 ./ fs : 1); ## sine Wave with time duration of 't' x = sin (2 .* pi .* t); ## Amplitude Modulation y = ammod (x, fc, fs); plot(y); title('Amplitude Modulation'); xlabel('Time(sec)'); ylabel('Amplitude');
Produces the following figure
Figure 1 |
---|
Package: communications