main content

filter signal through 3-凯发k8网页登录

filter signal through 3-d mimo fading channel

description

the lte3dchannel system object™ filters an input signal through the tr 36.873 link-level multiple-input/multiple-output (mimo) fading channel to obtain the channel-impaired signal. the object implements these channel processing steps defined in tr 36.873 [1], section 7.3:

  • step 7: adding ray offset angles

  • step 8: coupling of rays

  • step 9: generating cross-polarization power ratios (xprs)

  • step 10: drawing random initial phases

  • step 11: generating channel coefficients for each cluster

to filter an input signal using the tr 36.873 link-level mimo fading channel:

  1. create the lte3dchannel object and set its properties.

  2. call the object with arguments, as if it were a function.

to learn more about how system objects work, see what are system objects?

creation

description

lte3d = lte3dchannel creates a tr 36.873 link-level mimo system object.

example

lte3d = lte3dchannel(name,value) creates the object with properties set by using one or more name-value pairs. enclose the property name inside quotes, followed by the specified value. unspecified properties take default values.

example: lte3d = lte3dchannel('pathdelays',2e-6,'hasloscluster',true,'kfactorfirstcluster',12) creates the channel object with a path delay of two microseconds, the los cluster of the delay profile enabled, and a k-factor of 12 db for the first cluster of the delay profile.

example

lte3d = lte3dchannel.makecdl(delayprofile) creates the object with the specified cdl delay profile from tr 38.901 [2] section 7.7.1, and a delay spread of 30 ns.

example

lte3d = lte3dchannel.makecdl(delayprofile,delayspread) creates the object with the specified cdl delay profile and delay spread.

lte3d = lte3dchannel.makecdl(delayprofile,delayspread,kfactor) creates the object with the specified cdl delay profile, delay spread, and k-factor scaling.

input arguments

delay profile, specified as one of 'cdl-a', 'cdl-b', 'cdl-c', 'cdl-d', or 'cdl-e'.

delay spread in ns, specified as a numeric scalar.

data types: double

k-factor scaling, specified as a numeric scalar. k-factor scaling applies only when you specify delayprofile as 'cdl-d' or 'cdl-e'.

data types: double

properties

unless otherwise indicated, properties are nontunable, which means you cannot change their values after calling the object. objects lock when you call them, and the function unlocks them.

if a property is tunable, you can change its value at any time.

for more information on changing property values, see .

discrete path delays in seconds, specified as a numeric scalar or row vector. averagepathgains and pathdelays must have the same size.

data types: double

average path gains in db, specified as a numeric scalar or row vector. averagepathgains and pathdelays must have the same size.

data types: double

azimuth of arrival angle in degrees, specified as a numeric scalar or row vector. the vector elements specify the angles for each cluster.

data types: double

azimuth of departure angle in degrees, specified as a numeric scalar or row vector. the vector elements specify the angles for each cluster.

data types: double

zenith of arrival angle in degrees, specified as a numeric scalar or row vector. the vector elements specify the angles for each cluster.

data types: double

zenith of departure angle in degrees, specified as a numeric scalar or row vector. the vector elements specify the angles for each cluster.

data types: double

line of sight (los) cluster of the delay profile, specified as false or true. the pathdelays, averagepathgains, anglesaoa, anglesaod, angleszoa, and angleszod properties define the delay profile. to enable the los cluster of the delay profile, set this property to true.

data types: logical

k-factor of the first cluster of the delay profile in db, specified as a numeric scalar.

dependencies

to enable this property, set hasloscluster to true.

data types: double

cluster-wise root mean square (rms) angle spreads, in degrees, for scaling ray offset angles within a cluster. specify this property as a row vector of the form [caod caoa czod czoa], where:

  • caod is the cluster-wise rms azimuth spread of departure angles within a cluster

  • caoa is the cluster-wise rms azimuth spread of arrival angles within a cluster

  • czod is the cluster-wise rms zenith spread of departure angles within a cluster

  • czoa is the cluster-wise rms zenith spread of arrival angles within a cluster

data types: double

cross-polarization power ratio, in db, specified as a numeric scalar.

dependencies

to enable this property, set hasloscluster to true.

data types: double

carrier frequency in hz, specified as a numeric scalar.

data types: double

maximum doppler shift in hz, specified as a nonnegative numeric scalar. this property applies to all channel paths. when the maximum doppler shift is set to 0, the channel remains static for the entire input. to generate a new channel realization, reset the object by calling the function.

data types: double

user terminal (ut) direction of travel in degrees, specified as a two-element column vector. the vector elements specify the azimuth and the elevation components: [azimuth; elevation].

data types: double

sample rate of input signal in hz, specified as a positive numeric scalar.

data types: double

transmit antenna array characteristics, specified as a structure that contains the following fields:

parameter fieldvaluesdescription
size

[2 2 2] (default),

row vector

size of antenna array, specified as a row vector of the form [m n p].

  • m and n are the number of rows and columns in the antenna array, respectively.

  • p is the number of polarizations (1 or 2).

the antenna array elements are mapped to the input waveform channels (columns) in the order that a 3-d array of size m-by-n-by-p is linearly indexed across the first dimension to the last.

for example, an antenna array of size [4 8 2] has the first m = 4 channels mapped to the first column of the first polarization angle. the next m = 4 antennas are mapped to the next column, and so on. following this pattern, the first m×n = 32 channels are mapped to the first polarization angle of the complete antenna array. similarly, the remaining 32 channels are mapped to the second polarization angle of the complete antenna array.

for an antenna array with multiple panels, specify the size as a row vector of the form [m n p mg ng], where mg and ng are the number of row and column array panels, respectively.

the antenna array elements are mapped panel-wise to the waveform channels in the order that a 5-d array of size m-by-n-by-p-by-mg-by-ng is linearly indexed across the first dimension to the last. subsequent sets of m×n×p= 64 channels are mapped to consecutive panels, taking panel rows first, then panel columns.

elementspacing

[0.5 0.5] (default),

row vector

element spacing in wavelengths, specified as a row vector of the form [λv λh], representing the vertical and horizontal element spacing.

for an antenna array with multiple panels, specify the spacing as a row vector of the form [λv λh dgv dgh], where dgv and dgh are the vertical and horizontal panel spacing, respectively.

polarizationangles

[45 -45] (default),

row vector

polarization angles in degrees, specified as a row vector of the form [θ ρ]. polarization angles apply only when the number of polarizations is 2.

orientation

[0; 0; 0] (default),

column vector

mechanical orientation of the array, in degrees, specified as a column vector of the form [α; β; γ] describing bearing, downtilt, and slant. the default value indicates that the broadside direction of the array points to the positive x-axis.
element

'36.873' (default),

'isotropic'

antenna element radiation pattern. see tr 36.873 [1], section 7.1.1.

polarizationmodel

'model-2' (default),

'model-1'

model that determines the radiation field patterns based on a defined radiation power pattern. see tr 36.873 [1], section 7.1.1.

data types: struct

receive antenna array characteristics, specified as a structure that contains the following fields:

parameter fieldvaluesdescription
size

[2 2 2] (default),

row vector

size of antenna array, specified as a row vector of the form [m n p].

  • m and n are the number of rows and columns in the antenna array.

  • p is the number of polarizations (1 or 2).

the antenna array elements are mapped to the input waveform channels (columns) in the order that a 3-d array of size m-by-n-by-p is linearly indexed across the first dimension to the last.

for example, an antenna array of size [4 8 2] has the first m = 4 channels mapped to the first column of the first polarization angle. the next m = 4 antennas are mapped to the next column, and so on. following this pattern, the first m×n = 32 channels are mapped to the first polarization angle of the complete antenna array. similarly, the remaining 32 channels are mapped to the second polarization angle of the complete antenna array.

for an antenna array with multiple panels, you can specify the size as a row vector of the form [m n p mg ng], where mg and ng are the number of row and column array panels, respectively.

the antenna array elements are mapped panel-wise to the waveform channels in the order that a 5-d array of size m-by-n-by-p-by-mg-by-ng is linearly indexed across the first dimension to the last. subsequent sets of m×n×p= 64 channels are mapped to consecutive panels, taking panel rows first, then panel columns.

elementspacing

[0.5 0.5] (default),

row vector

element spacing in wavelengths, specified as a a row vector of the form [λv λh] representing the vertical and horizontal element spacing, respectively.

for an antenna array with multiple panels, you can specify the spacing as a row vector of the form [λv λh dgv dgh], where dgv and dgh are the vertical and horizontal panel spacing, respectively.

polarizationangles

[0 90] (default),

row vector

polarization angles in degrees, specified as a row vector of the form [θ ρ]. polarization angles apply only when the number of polarizations is 2.

orientation

[0; 0; 0] (default),

column vector

mechanical orientation of the array, in degrees, specified as a column vector of the form [α; β; γ] describing bearing, downtilt, and slant, respectively. the default value indicates that the broadside direction of the array points to the positive x-axis.
element

'isotropic' (default),

'36.873'

antenna element radiation pattern. see tr 36.873 [1], section 7.1.1.

polarizationmodel

'model-2' (default),

'model-1'

model that determines the radiation field patterns based on a defined radiation power pattern. see tr 36.873 [1], section 7.1.1.

data types: structure

number of time samples per half wavelength, specified as a numeric scalar. the sampledensity and maximumdopplershift properties control the coefficient generation sampling rate, fcg:

fcg = maximumdopplershift × 2 × sampledensity.

setting sampledensity to inf assigns fcg the value of the samplerate property.

data types: double

normalize path gains, specified as true or false. use this property to normalize the fading processes. when this property is set to true, the total power of the path gains, averaged over time, is 0 db. when this property is set to false, the path gains are not normalized. the averagepathgains property specifies the average powers of the path gains.

data types: logical

start time of fading process in seconds, specified as a numeric scalar.

tunable: yes

data types: double

number of strongest clusters to split into subclusters, specified as a numeric scalar. see tr 36.873 [1], section 7.3, step 11.

data types: double

cluster delay spread in seconds, specified as a nonnegative scalar. use this property to specify the delay offset between subclusters for clusters split into subclusters. see tr 36.873 [1], section 7.3, step 11.

dependencies

to enable this property, set numstrongestclusters to a value greater than zero.

data types: double

source of random number stream, specified as one of the following:

  • 'mt19937ar with seed' — the object uses the mt19937ar algorithm for normally distributed random number generation. calling the function resets the filters and reinitializes the random number stream to the value of the seed property.

  • 'global stream' — the object uses the current global random number stream for normally distributed random number generation. calling the function resets only the filters.

initial seed of mt19937ar random number stream, specified as a nonnegative numeric scalar.

dependencies

to enable this property, set randomstream to 'mt19937ar with seed'. when calling the function, the seed reinitializes the mt19937ar random number stream.

data types: double

filter input signal, specified as true or false. when this property is set to false, the object takes no input signal, and the path gains and sample times are the only outputs. in this case, the numtimesamples property controls the duration of the fading process realization at a sampling rate given by the samplerate property.

data types: logical

number of time samples, specified as a positive integer. use this property to set the duration of the fading process realization.

tunable: yes

dependencies

to enable this property, set channelfiltering to false.

data types: double

normalize channel outputs by the number of receive antennas, specified as true or false.

dependencies

to enable this property, set channelfiltering to true.

data types: double

usage

description

example

signalout = lte3d(signalin) filters the input signal through a tr 36.873 link-level mimo fading channel system object lte3d and returns the channel-impaired signal.

[signalout,pathgains] = lte3d(signalin) also returns the mimo channel path gains of the underlying fading process.

example

[signalout,pathgains,sampletimes] = lte3d(signalin) also returns the sample times of the channel snapshots of pathgains (first-dimension elements).

pathgains = lte3d() returns only the path gains. in this case, the numtimesamples property determines the duration of the fading process. the object acts as a source of path gains without filtering an input signal.

to use this syntax, you must set the channelfiltering property of lte3d to false.

[pathgains,sampletimes] = lte3d() also returns the sample times. the object acts as a source of the path gains and sample times without filtering an input signal.

to use this syntax, you must set the channelfiltering property of lte3d to false.

input arguments

input signal, specified as a complex scalar, vector, or ns-by-nt matrix, where:

  • ns is the number of samples.

  • nt is the number of transmit antennas.

data types: single | double
complex number support: yes

output arguments

output signal, returned as a complex scalar, vector, or ns-by-nr matrix, where:

  • ns is the number of samples.

  • nr is the number of receive antennas.

the output signal data type is of the same precision as the input signal data type.

data types: single | double
complex number support: yes

mimo channel path gains of the fading process, returned as a ncs-by-np-by-nt-by-nr complex matrix, where:

  • ncs is the number of channel snapshots, controlled by the sampledensity property.

  • np is the number of paths, given by the size of the pathdelays property.

  • nt is the number of transmit antennas.

  • nr is the number of receive antennas.

the path gains data type is of the same precision as the input signal data type.

data types: single | double
complex number support: yes

sample times of channel snapshots, returned as an ncs-by-1 column vector, where ncs is the number of channel snapshots, controlled by the sampledensity property.

data types: double

object functions

to use an object function, specify the system object as the first input argument. for example, to release system resources of a system object named obj, use this syntax:

release(obj)
visualize and explore 3-d mimo fading channel model characteristics
get path filter impulse response for 3-d mimo fading channel
get characteristic information about 3-d mimo fading channel
run system object algorithm
create duplicate system object
determine if system object is in use
release resources and allow changes to system object property values and input characteristics
reset internal states of system object

examples

transmit an lte waveform through a 3-d channel with delay profile cdl-d from tr 38.901 section 7.7.1.

define the transmission waveform configuration structure, initialized to reference measurement channel (rmc) r.50, tdd (10mhz, qpsk, r=1/3, 1 layer, 8 csi-rs ports), and one subframe.

rmc = ltermcdl('r.50','tdd');
rmc.totsubframes = 1;
data = [1; 0; 0; 1];
[txwaveform,~,txinfo] = ltermcdltool(rmc,data);

define the channel configuration structure using an lte3dchannel system object. use delay profile cdl-d from tr 38.901 section 7.7.1, a delay spread of 10 ns, and ut velocity of 15 km/h:

v = 15.0;                    % ut velocity in km/h
fc = 4e9;                    % carrier frequency in hz
c = physconst('lightspeed'); % speed of light in m/s
fd = (v*1000/3600)/c*fc;     % ut max doppler frequency in hz
 
lte3d = lte3dchannel.makecdl('cdl-d',10e-9);
lte3d.carrierfrequency = fc;
lte3d.maximumdopplershift = fd;
lte3d.samplerate = txinfo.samplingrate;

configure the transmit array as [m n p] = [2 2 2], representing a 2-by-2 antenna array (m=2, n=2) and p=2 polarization angles. configure the receive antenna array as [m n p] = [1 1 2], representing a single pair of cross-polarized co-located antennas.

lte3d.transmitantennaarray.size = [2 2 2];
lte3d.receiveantennaarray.size = [1 1 2]; 

call the 3-d channel object on the input waveform.

rxwaveform = lte3d(txwaveform);

plot channel output and path gain snapshots for various sample density values while using an lte3dchannel system object.

configure a 3-d channel for siso operation and delay profile cdl-b from tr 38.901 section 7.7.1. set the maximum doppler shift to 300 hz and the channel sampling rate to 10 khz.

lte3d = lte3dchannel.makecdl('cdl-b');
lte3d.maximumdopplershift = 300.0;
lte3d.samplerate = 10e3;
lte3d.seed = 19;

configure transmit and receive antenna arrays.

lte3d.transmitantennaarray.size = [1 1 1];
lte3d.receiveantennaarray.size = [1 1 1];

create an input waveform with a length of 40 samples.

t = 40; 
in = ones(t,1); 

plot the step response of the channel (displayed as lines) and the corresponding path gain snapshots (displayed circles) for various values of the sampledensity property. the sample density property controls how often the channel snapshots are taken relative to the doppler frequency.

  • when sampledensity = inf, a channel snapshot is taken for every input sample.

  • when sampledensity = x, a channel snapshot is taken at a rate of fcs = 2*x*maximumdopplershift.

the lte3dchannel object applies the channel snapshots to the input waveform by means of zero-order hold interpolation. the object takes an extra snapshot beyond the end of the input. some of the final output samples use this extra value to minimize the interpolation error. the channel output contains a transient (and a delay) due to the filters that implement the path delays.

s = [inf 5 2]; % sample densities
  
legends = {};
figure; hold on;
sr = lte3d.samplerate;
for i = 1:length(s)
      
    % call channel with chosen sample density
    release(lte3d); lte3d.sampledensity = s(i);
    [out,pathgains,sampletimes] = lte3d(in);
    chinfo = info(lte3d); tau = chinfo.channelfilterdelay;
      
    % plot channel output against time
    t = lte3d.initialtime   ((0:(t-1)) - tau).' / sr;
    h = plot(t,abs(out),'o-'); h.markersize = 2; h.linewidth = 1.5;
    desc = ['sample density=' num2str(s(i))];
    legends = [legends ['output, ' desc]];
    disp([desc ', ncs=' num2str(length(sampletimes))]);
      
    % plot path gains against sample times
    h2 = plot(sampletimes - tau/sr,abs(sum(pathgains,2)),'o');
    h2.color = h.color; h2.markerfacecolor = h.color;
    legends = [legends ['path gains, ' desc]];
      
end
sample density=inf, ncs=40
sample density=5, ncs=13
sample density=2, ncs=6
xlabel('time (s)');
title('channel output and path gains versus sample density');
ylabel('channel magnitude');
legend(legends,'location','northwest'); 

figure contains an axes object. the axes object with title channel output and path gains versus sample density, xlabel time (s), ylabel channel magnitude contains 6 objects of type line. one or more of the lines displays its values using only markers these objects represent output, sample density=inf, path gains, sample density=inf, output, sample density=5, path gains, sample density=5, output, sample density=2, path gains, sample density=2.

display waveform spectrum of an lte ofdm modulation waveform passed through a 40-by-2 channel using the lte3dchannel system object.

create a resource grid for 40 antennas.

enb.ndlrb = 25;
enb.cyclicprefix = 'normal';
grid = ltedlresourcegrid(enb,40);
fill the grid with qpsk symbols and perform lte ofdm modulation.
grid(:) = ltesymbolmodulate(randi([0 1],numel(grid)*2,1),'qpsk');
[txwaveform,txinfo] = lteofdmmodulate(enb,grid);

create an lte3dchannel system object with specific properties.

lte3d = lte3dchannel('pathdelays',[0 500e-9], ...
    'averagepathgains',[-13.4 3.0], ...
    'anglesaod',[-178.1 -4.2], ...
    'anglesaoa',[51.3 -152.7], ...
    'angleszod',[50.2 93.2], ...
    'angleszoa',[125.4 91.3], ...
    'numstrongestclusters',1, ...
    'samplerate',txinfo.samplingrate);

configure transmit and receive antenna arrays.

lte3d.transmitantennaarray.size = [10 2 2];
lte3d.receiveantennaarray.size = [1 1 2];

the antenna array elements are mapped to the waveform channels (columns) using linear indexing of transmitantennaarray.size or receiveantennaarray.size across the first dimension to the last. see the transmitantennaarray or receiveantennaarray properties of the lte3dchannel system object for more details.

pass the lte ofdm modulation waveform through the 40-by-2 3-d channel.

rxwaveform = lte3d(txwaveform);

plot the received waveform spectrum.

analyzer = spectrumanalyzer(samplerate=lte3d.samplerate);
analyzer.title = 'received signal spectrum';
analyzer(rxwaveform);

references

[1] 3gpp tr 36.873. “study on 3d channel model for lte.” 3rd generation partnership project; technical specification group radio access network; evolved universal terrestrial radio access (e-utra). url: .

[2] 3gpp tr 38.901. “study on channel model for frequencies from 0.5 to 100 ghz.” 3rd generation partnership project; technical specification group radio access network. url: .

version history

introduced in r2018a

网站地图