필터 지우기
필터 지우기

Decode I-Q values from IQ file in MATLAB

조회 수: 122 (최근 30일)
tyler seudath
tyler seudath 2022년 9월 16일
댓글: Jeffrey Clark 2022년 9월 18일
Dear all,
I recorded I/Q on my SDR and the I/Q binary file found here. I was wondering if the IQ file can be opened in matlab so I can see the real and imaginary values.
Many thanks in advance.
Best,
Tyler
  댓글 수: 1
Jeffrey Clark
Jeffrey Clark 2022년 9월 18일
@tyler seudath, I tried double (8 byte) and single (4 byte) floating using little and big endian (4 combinations) but always got INF or NaN for some of the floats.
  1. Is the SRD recording in an IEEE standard float or other?
  2. Or just producing N byte signed/unsinged integers?
  3. little or big endian?
You can use these commands to get the 10,010,624 bytes of binary read into a float or integer array, byte swapped as needed modifying the following. If you find you have 16 bit float you will have to try to find a converter; if you expect integer data you can also adjust accordingly. Since I expected to find complex numbers I expected 2xN as indicated:
[FID, message] = fopen('Binary.iq','rb','s'); % the 's' specifies big endian for float formats
[bindata,count] = fread(FID, [2,inf],'*double','s'); % hear trying 8 byte and big endian
iqdata = complex(bindata(1,:),bindata(2,:));
fclose(FID)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by