Preallocation for waveform size
This commit is contained in:
@@ -161,12 +161,13 @@ timing_struct.PRI = timing_struct.T_dwell + timing_struct.T_settle + timing_stru
|
|||||||
|
|
||||||
|
|
||||||
% [24.08.22] Lowpass filter 구현 때문에 2배 oversampling 함.
|
% [24.08.22] Lowpass filter 구현 때문에 2배 oversampling 함.
|
||||||
|
temp_Ref_wave = zeros(2*NumSamples, NumChirps);
|
||||||
for m = 1 : 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_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);
|
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
|
end
|
||||||
Ref_wave = repmat(Ref_wave, 1, 1, Nr);
|
Ref_wave = repmat(temp_Ref_wave, 1, 1, Nr);
|
||||||
|
|
||||||
% 02. DDMA
|
% 02. DDMA
|
||||||
DDMA_freq = [0 1/4 2/4] * 1/Tx_wave.T_chirp;
|
DDMA_freq = [0 1/4 2/4] * 1/Tx_wave.T_chirp;
|
||||||
|
|||||||
Reference in New Issue
Block a user