Hi! can you guide me to plot power spectra of ASK signal?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have:
- Number of data bits (1s and 0s) = 100
- Sampling frequency, fs = 100Hz
- Number of data points (samples) = 100 X fs = 10000 data points
- Block size of the FFT, N = 4096
I solve it many days, but still I can't solve it. Could you help me as fast as possible? I really need it now ! Thanks !!!
댓글 수: 3
Rick Rosson
2014년 9월 28일
편집: Rick Rosson
2014년 9월 28일
I don't think that is correct. You mentioned in the comments below that the bit time Tb is 1 second per bit. So that implies that the data rate R = 1/Tb is 1 bit per second.
답변 (1개)
Rick Rosson
2014년 9월 28일
편집: Rick Rosson
2014년 9월 28일
Here's a start:
Tb = 1; % seconds per bit
R = 1/Tb; % bits per second
M = 100; % bits
b = ( rand(M,1) > 0.5 );
figure;
stem(0:M-1,b);
d = 1 - 2*b;
x = repmat(d,100,1);
x = x(:);
Fs = 100; % samples per second
N = Fs*M/R; % samples
dt = 1/Fs;
t = dt*(0:N-1)';
figure;
plot(t,x);
댓글 수: 7
Rick Rosson
2014년 9월 30일
편집: Rick Rosson
2014년 9월 30일
Based on your comment above, and according to the plot that you attached, it appears that you need to move the signal from the baseband to the passband at a center frequency of Fc = 4 Hertz. If you start with the code that I posted, you should be able to up convert the baseband signal x to the passband using a pure tone cosine wave to modulate the signal.
Once you have done that, you can then transform your passband signal from the time domain to the frequency domain using either fft or pwelch.
Good luck!
참고 항목
카테고리
Help Center 및 File Exchange에서 ASK에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!