Why do I see no Carrier Modulation Component?
2 views (last 30 days)
Show older comments
Hi, I'm trying to simulate some amplitude modulation using an example from "The Art of Electronics (Horowitz)". the author says a data signal may be amplitude modulated with a carrier by the following:
Which by expanding the product results in three terms - the carrier and the two sidebands. I created the following matlab to test this:
y1=cos(2*pi*fm*t1); % message signal
y2=cos(2*pi*fc*t1); % carrier signal
heq = hilbert(eq);
ffteq = fft(eq);
n = length(eq);
f = (0:n-1)*(100/n);
power = abs(ffteq).^2/n;
But my fft shows only the sidebands - no carrier at all - supressed carrier modulation. How should I alter my script to show the carrier in the fft? I see MatLab has ammod function, but I cannot get that to work at all. :/ Thanks in advance.
Find more on Modulation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!