I am designing 'modulation data and adding noise' simulation in Matlab app designer. This is my carrier signal specs.
L = length(app.modulated_data)
app.carrier = sin(2*pi*Fc*t)
In spectrum analyzer I cant change center frequency. I am using Raised cossine transmit filter before plotting spectrum analysis. There are codes bellow:
function results = spectrum_plot(app)
txfilter = comm.RaisedCosineTransmitFilter("Shape","Square root", ...
"FilterSpanInSymbols",10, ...
"OutputSamplesPerSymbol",8);
app.spectrum_signal = txfilter(app.compression_noised_signal);
[p,f] = pspectrum(app.spectrum_signal)
plot(app.UIAxes3,f,pow2db(p))
Why my carrier frequency doesn't appear in the spectrum analyzer?