Can spectrumAnalyzer show the power level of complex I&Q signal?
I created a complex linear frequency modulated Chirp signal (constant envelop) anad complex noise. When I use spectrumAnalyzer within the MATLAB live script, it shows non-constant spectrum. Is there a way to show complex signal’s power and noise?
% For repeatable simulations, set the random number generator to default
rng default;
noisesigI = wgn(numSamples,1,10*log10(N))’;
noisesigQ = wgn(numSamples,1,10*log10(N))’;
noisesig = 1/(sqrt(2))*complex(noisesigI,noisesigQ);
rxwaveform = (scaledsig + noisesig);
% Scale the received signal for having unit power
Scaled_rxwaveform = rxwaveform/rms(rxwaveform);
ShowVisualizations =1;
if ShowVisualizations == 1
rxscope = spectrumAnalyzer(SampleRate = baseFs, …
PlotAsTwoSidedSpectrum = true, …
SpectrumType = "Power", …
SpectrumUnits = "dBW", …
Title = "Received signal BB UDC + Noise spectrum");
rxscope(rxwaveform’, noisesig’,scaledsig’); %scope accepts only column vec.
endI created a complex linear frequency modulated Chirp signal (constant envelop) anad complex noise. When I use spectrumAnalyzer within the MATLAB live script, it shows non-constant spectrum. Is there a way to show complex signal’s power and noise?
% For repeatable simulations, set the random number generator to default
rng default;
noisesigI = wgn(numSamples,1,10*log10(N))’;
noisesigQ = wgn(numSamples,1,10*log10(N))’;
noisesig = 1/(sqrt(2))*complex(noisesigI,noisesigQ);
rxwaveform = (scaledsig + noisesig);
% Scale the received signal for having unit power
Scaled_rxwaveform = rxwaveform/rms(rxwaveform);
ShowVisualizations =1;
if ShowVisualizations == 1
rxscope = spectrumAnalyzer(SampleRate = baseFs, …
PlotAsTwoSidedSpectrum = true, …
SpectrumType = "Power", …
SpectrumUnits = "dBW", …
Title = "Received signal BB UDC + Noise spectrum");
rxscope(rxwaveform’, noisesig’,scaledsig’); %scope accepts only column vec.
end I created a complex linear frequency modulated Chirp signal (constant envelop) anad complex noise. When I use spectrumAnalyzer within the MATLAB live script, it shows non-constant spectrum. Is there a way to show complex signal’s power and noise?
% For repeatable simulations, set the random number generator to default
rng default;
noisesigI = wgn(numSamples,1,10*log10(N))’;
noisesigQ = wgn(numSamples,1,10*log10(N))’;
noisesig = 1/(sqrt(2))*complex(noisesigI,noisesigQ);
rxwaveform = (scaledsig + noisesig);
% Scale the received signal for having unit power
Scaled_rxwaveform = rxwaveform/rms(rxwaveform);
ShowVisualizations =1;
if ShowVisualizations == 1
rxscope = spectrumAnalyzer(SampleRate = baseFs, …
PlotAsTwoSidedSpectrum = true, …
SpectrumType = "Power", …
SpectrumUnits = "dBW", …
Title = "Received signal BB UDC + Noise spectrum");
rxscope(rxwaveform’, noisesig’,scaledsig’); %scope accepts only column vec.
end spectrumanalyzer, signal processing MATLAB Answers — New Questions