You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Konstanty edited this page Jul 23, 2014
·
1 revision
After recording the samples using rtl_sdr, you can read in the file by running:
octave:1> x = read_complex_byte('dump.bin');
octave:2> size(x);
Note: you must be in the same directory as the dump.bin, or you need to specify the full path name. Also, the extension can be anything, typically in this class we will be using bin or dat extensions.
The size of x, should be 1x. You can see the first sample by typing in the following. Note that Matlab/Octave use 1 based indexing:
octave:1> x(1)
Next you can check the spectrum by getting the Fourier transform of the signal, or by using the pwelch function in Matlab/Octave. Read the documentation for this function to find out more. Note that you can get help in Matlab/Octave by typing help <functionname>, or doc <functionname>
If you use the default arguments to the spectrum plot, you will get a plot with the positive spectrum on one side, and the negative on the other. As we are using complex samples, they are not the same. Also you might prefer to center the graph on DC. Also, make sure you use the decibel power scale on the y axis.