37 lines
986 B
Matlab
37 lines
986 B
Matlab
function [mimoarray] = gen_virarray(txarray_loc, rxarray_loc)
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
%
|
|
% Generating MIMO virtual array
|
|
% Start : 23.08.25
|
|
% End : 23.08.25
|
|
% developed by Kwanggoo Yeo
|
|
%
|
|
% Description
|
|
% - Input
|
|
% - 1) txarray_loc [matrix], [m] : Locations of txarray elements in cartesian coordinate
|
|
% - 2) rxarray_loc [matrix], [m] : Locations of rxarray elements in cartesian coordinate
|
|
%
|
|
% - Output
|
|
% - 1) mimoarray [matrix], [m] : virtual array
|
|
%
|
|
% History
|
|
% (23.08.25) Completed
|
|
%
|
|
% Referece
|
|
% -
|
|
%
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
Nt = size(txarray_loc,2);
|
|
Nr = size(rxarray_loc,2);
|
|
|
|
mimoarray = zeros(3, Nt*Nr);
|
|
for tx_idx = 1 : Nt
|
|
for rx_idx = 1 : Nr
|
|
mimoarray(:, Nr*(tx_idx-1) + rx_idx) = txarray_loc(:, tx_idx) + rxarray_loc(:, rx_idx);
|
|
end
|
|
end
|
|
|
|
end
|
|
|