
I did an fft on the carrier and I was surprised
P = 1024; %power of 2
fft1 = abs(fft(x2, P)); %magnitude spectrum
fft2 = fft1(1:length(fft1)/2); %cut in half
freqP = 0 : P-1;
freqHz = (freqP/P)*fs2; %normalising i.e conversion to f axis
freqHz2 = freqHz(1:length(freqHz)/2); %cut in half
figure;
plot(freqHz2,fft2);
title('fft of carrier signal');
The fft shows that the frequency of the carrier is 25 kHz (as it should ideally be). That means, my theory that the carrier signal "expanded" is wrong.
Yet, something doesn't seem right about the carrier signal. It doesn't look like it's a lot higher in frequency than the audio tone if you look at the plots.