필터 지우기
필터 지우기

Adding Phase Noise on Sine wave at frequency offset

조회 수: 6 (최근 30일)
Nikhil Mitaliya
Nikhil Mitaliya 2020년 3월 2일
답변: Keerthana Chiruvolu 2020년 3월 17일
Hi,
I need to simulate Phase Noise effect on the Sine wave at frequency offset from 100 HZ to 10e6Hz away from the original frequency with power levels associated with it.
I tried to use comm.phasenoise block and is giving error.
clc;
clear all;
close all;
Fs = 5e09; % Setting up Sample Rate
f = 1000e06; % Setting up the Frequency wants to generate
n = 1:1:4800; % Setting up Memory Points
x = sin(2*pi*(f/Fs)*n);
y = cos(2*pi*(f/Fs)*n);
Combine = complex(x, y);
abc = Combine';
hPhNoise = comm.PhaseNoise('Level',[-67 -75 -96 -96 -97 ], ...
'FrequencyOffset',[100 1e3 10e3 100e3 1e6 ], ...
'SampleRate',Fs);
STEP = step(hPhNoise, abc);
Thanks,

답변 (1개)

Keerthana Chiruvolu
Keerthana Chiruvolu 2020년 3월 17일
Hi,
Your code is run without any errors for me. Kindly post the error you encountered while executing the code. You may also use the following code instead of step() to add the noise to the signal.
Out=hPhNoise(inputColumnVector);

카테고리

Help CenterFile Exchange에서 Waveform Generation에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by