From 187bd43b0884ebbd2c867b27fee283e4cf5f7ddc Mon Sep 17 00:00:00 2001 From: yeokwanggoo-stack Date: Tue, 29 Jul 2025 22:25:43 +0900 Subject: [PATCH] Preallocation for waveform size --- System_Analysis_Main.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/System_Analysis_Main.m b/System_Analysis_Main.m index 280242a..ec9a3a0 100644 --- a/System_Analysis_Main.m +++ b/System_Analysis_Main.m @@ -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;