Preallocation for waveform size

This commit is contained in:
2025-07-29 22:25:43 +09:00
parent b1940770ac
commit 187bd43b08
+3 -2
View File
@@ -161,12 +161,13 @@ timing_struct.PRI = timing_struct.T_dwell + timing_struct.T_settle + timing_stru
% [24.08.22] Lowpass filter 2 oversampling .
temp_Ref_wave = zeros(2*NumSamples, NumChirps);
for m = 1 : NumChirps
%Tx_wave = gen_fastramp_fmcw2(timing_struct, 2*fs, fc-TxBw/2, TxBw, m, NumChirps, 0, tx_phase_initial, opt_waveform);
Tx_wave = gen_fastramp_fmcw(timing_struct, 2*fs, fc-TxBw/2, TxBw, NumChirps, 0, tx_phase_initial, opt_waveform);
Ref_wave(:,m) = Tx_wave.waveform;
temp_Ref_wave(:,m) = Tx_wave.waveform;
end
Ref_wave = repmat(Ref_wave, 1, 1, Nr);
Ref_wave = repmat(temp_Ref_wave, 1, 1, Nr);
% 02. DDMA
DDMA_freq = [0 1/4 2/4] * 1/Tx_wave.T_chirp;