This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
大家好、 本文中提供了一个用于读取二进制文件的 MATLAB 脚本、另请参阅下面的。 不过我有两个问题:
1.什么是 chunkSize? (具体适用于 AWR1843Boost)
2.在某种`应该有一条` end 指令,但我不确定在哪里?
提前感谢。
%*****
%%读取二进制文件
%*****
fname = strcat (dirname、filename);
fid = fopen (fname、'r');
adcOut =[];
InputLoadingPosition = 0;
对于 indexFrame=1:numFrames
fseek (fid、inputLoadingPosition、'bof');
dataChunk = fread (fid、chunkSize、'uint16'、'l');
InputLoadingPosition = ftell (fid);
dataChunk = dataChunk -(dataChunk >= 2^15)* 2^16;
% radar_data 具有以下格式的数据。
% Rx0I0、Rx0I1、Rx0Q0、Rx0Q1、Rx0I2、 Rx0I3、Rx0Q2、Rx0Q3、...
%以下脚本将其重新塑造成三维阵列。
% size (adcOut)=[每个线性调频脉冲的 ADC 样本 x 每帧的线性调频脉冲 x 虚拟通道数]
len = length (dataChunk)/ 2;
adcOut (1:2:len)= dataChunk (1:4:end)+ 1J* dataChunk (3:4:end);
adcOut (2:2:len)= dataChunk (2:4:end)+ 1J* dataChunk (4:4:end);
adcOut = reshape (adcOut、chirp_NUM_ADC_SAMPLE_SIZE、numTXAnt*4、chirp_NUM_chirps);
adcOut = permute (adcOut、[1、3、2]);
%*****
%%雷达信号处理
%*****
第一个线性调频脉冲的 ADC 数据百分比图
% 图(1);CLF
% plot (real (adcOut (:、1、1))、'r');
% 保持
% plot (imag (adcOut (:、1、1));
% 图例("I-Channel"、"Q-Channel");栅格打开
% 标题('ADC 数据')
第二维(样本)上的% 1D 距离 FFT、无填充零
fftSize1d =大小(adcOut、1);
radar_data_1dFFT = FFT (adcOut、[]、1);%.* Window_1d
布拉德利、您好!
请在下面找到我的回答。
此致、
Kaushik