Effacer les filtres
Effacer les filtres

Spectrum Analyzer Center Frequency Issue

2 vues (au cours des 30 derniers jours)
Kaan Öner
Kaan Öner le 10 Août 2023
Modifié(e) : Saksham le 24 Août 2023
I am designing 'modulation data and adding noise' simulation in Matlab app designer. This is my carrier signal specs.
Fc = 300
Fs = 1000
T = 1/Fs
L = length(app.modulated_data)
t = (0:L-1)'*T
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, ...
"RolloffFactor",0.2, ...
"OutputSamplesPerSymbol",8);
app.spectrum_signal = txfilter(app.compression_noised_signal);
[p,f] = pspectrum(app.spectrum_signal)
plot(app.UIAxes3,f,pow2db(p))
end
Why my carrier frequency doesn't appear in the spectrum analyzer?
  1 commentaire
Saksham
Saksham le 24 Août 2023
Modifié(e) : Saksham le 24 Août 2023
Hi Kaan,
I can observe in the code shared by you that you are assigning signal to 'app.carrier' but in function 'spectrum_plot', you are using 'app.compression_noised_signal'.
Please confirm if this is the expected code or not.
Sincerely,
Saksham

Connectez-vous pour commenter.

Réponses (0)

Produits


Version

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by