- Use fftshift to discriminate negative and positive frequencies
- Use db for better visualization
- Create x-Axis from -fs/2 to +fs/2 (1024 samples)
GPS Acquisition IF frequency in graph
1 view (last 30 days)
Show older comments
I am trying to generate GPS Acquisition signals using frequency code phase search acquisition.
- I generated C/A gold codes and digitised at 16.368e6 MHz(sampling frequency)
- I generated carrier signals using exponential function at sampling frequency
- I have input data with IF of 4.092e6 and sampling frequency as mentioned above. my inout data has 163680 samples
- I multiplied input data with carrier signals which produces 1023 samples by considering 1023 samples from input data and converted into Fourier transform using FFT
- I converted gold codes into frequency domain using FFT
- I multiplied gold codes with step 4 to get final output with 1023 samples.
I have converted to absolute values and ploted. Then I got graphs as below. How to plot so that I can get IF in middle of graphs and how to plot correctly?
final_out is output from step 6:
[amp crw] = max(max(abs(final_out')));
[amp ccn] = max(max(abs(final_out)));
figure;
plot(abs(final_out(ccn,1:1023)));
3 Comments
Answers (0)
See Also
Categories
Find more on Waveform Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!