%% Configure Two Bandwidth Parts for Two SCS Carriers
% Create a default SCS carrier configuration object, which configures a 10 MHz carrier with 15 kHz SCS.

scs1 = nrSCSCarrierConfig; 

% Create an SCS carrier configuration object, which configures a 100 MHz carrier with 30 kHz SCS.

scs2 = nrSCSCarrierConfig('SubcarrierSpacing',30,'NSizeGrid',273);

% Create two BWP configurations, one for each of the SCS carriers.

bwp1 = nrWavegenBWPConfig;
bwp2 = nrWavegenBWPConfig('SubcarrierSpacing',scs2.SubcarrierSpacing, ...
    'NSizeBWP',12,'NStartBWP',30);

% Create a downlink carrier configuration object, specifying the previously defined BWP and corresponding SCS carrier configurations.

cfgDL = nrDLCarrierConfig( ...
    'SCSCarriers',{scs1,scs2}, ...
    'BandwidthParts',{bwp1,bwp2});

% Copyright 2020 The MathWorks, Inc.