使用Matlab分析频谱仪I/Q数据
matlab吧
全部回复
仅看楼主
level 3
wylloong 楼主
我在实习期间负责Matlab处理频谱仪的I/Q数据,由于专业知识不对口走了很多弯路,不过现在已经搞定了,现在把基本思路分享给大家!
2014年12月09日 01点12分 1
level 3
wylloong 楼主
Matlab is an excellent tool to use when analyzing sampled signals in ways that the various Real-Time Spectrum Analyzer models do not currently support. This document is intended to be used by users who are familiar with Matlab, but need to “bridge the gap” between the data format produced by the RTSA and their analysis software.
This document is a work in progress. Currently, the topics covered are:
n Importing IQ data which is saved as a . MAT file from the RSA6100 or RSA3000
n Using the correct calculation for power in both time and frequency domains
Importing I/Q samples into Matlab
The RTSA can save samples in multiple formats, including .MAT. This .MAT file format includes the I and Q samples and enough information for Matlab to import the data and various other ancillary parameters easily. The file format is intended to be suitable for importing into the Agilent 89600 software.
To import the .MAT file (in this case “reference.mat”), use the “load” command:
>> load reference.mat
You can also find out what variables are in the .mat files (which ones will be assigned when the load command is used) with “whos -file”:
>> whos -file reference.mat
Name Size Bytes Class Attributes
InputCenter 1x1 8 double
InputZoom 1x1 1 uint8
XDelta 1x1 8 double
Y 6966x1 55728 single complex
For now, we’ll be mostly concerned with Y, the actual I/Q samples. As “whos” shows, this is a single-dimensioned array of complex values. The Real part of each value is I and the Imaginary part is Q. The other values in the file are:
n InputCenter: The center frequency of the acquisition band.
n InputZoom: A flag. Indicating that the I/Q samples have been converted to baseband (“Zoomed”).
n XDelta: The sample period. SamplingRate = 1/XDelta.
2014年12月09日 01点12分 2
level 3
wylloong 楼主
2014年12月09日 01点12分 3
基本处理公示就是这些了,第一次使用matlab应用到实际中,还是蛮开心的一件事呢!
2014年12月09日 01点12分
level 3
wylloong 楼主
ASK解调后与频谱仪对比图:
2014年12月09日 01点12分 4
level 3
wylloong 楼主
FSK解调后与频谱仪对比图:
2014年12月09日 01点12分 5
level 1
请问有具体的代码嘛?
2017年11月06日 08点11分 6
1