Initial ARSS. Need to improve and add functions.

This commit is contained in:
2026-03-02 14:48:21 +09:00
commit 775668afdb
20 changed files with 1610 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
% chirpIdx , t와 fs
function tx_matrix = apply_mimo_mode(x_amp, t, Timing, NumTx, mimoMode, fs)
N_samples = length(x_amp);
tx_matrix = zeros(NumTx, N_samples);
T_chirp = Timing.IdleTime + Timing.RampEndTime;
SamplesPerChirp = round(T_chirp * fs);
% []: (1, 2, 3...)
chirp_indices = floor((0:N_samples-1) / SamplesPerChirp) + 1;
switch upper(mimoMode)
case 'TDM'
% 1,2,3,1,2,3
active_tx_seq = mod(chirp_indices - 1, NumTx) + 1;
for tx = 1:NumTx
%
tx_matrix(tx, :) = x_amp .* (active_tx_seq == tx);
end
case 'DDMA'
%
for tx = 1:NumTx
phase_shift_seq = 2 * pi * (tx - 1) * (chirp_indices - 1) / NumTx;
tx_matrix(tx, :) = x_amp .* exp(1j * phase_shift_seq);
end
otherwise
error(' MIMO . TDM DDMA를 .');
end
end