Main Content

CombineSlices

Combine multiple GPZ matrices in a single 3-D GPZ matrix

Since R2023b

Description

gpz = CombineSlices (gpz1,gpz2) concatenates gpz1 and gpz2 into a single 3-D GPZ matrix. If necessary, the function pad the third dimension with zeros.

gpz = CombineSlices (gpzCell) concatenates and zero-pads together in the third dimension the 2-D GPZ matrices contained in the cell array gpzCell.

example

Examples

collapse all

Create a GPZ matrix from a uniform number of poles and zeros.

G = [-3;-4;-5;-6];
P = [-15321428571 -13848214285;...
    -15600000000 -14100000000;...
    -15878571428 -14351785714;...
    -16157142857 -14603571428];
Z = [-5574642857;-4960100000;-4435821428;-3981285714];

gpz1 = serdes.CTLE.GainPoleZeroToGPZ(G,P,Z);

Create a second GPZ matrix from a varying number of poles.

G = [0;-1;-2];
P = {[-23771428571,-13092857142];...
    [-17603571428,-13344642857];...
    [-17935714285,-13596428571,-15321428571]};
Z = {-10492857142;-7914982142;-6845464285};
gpz2 = serdes.CTLE.GainPoleZeroToGPZ(G,P,Z);

Combine the two matrices into a 3D GPZ matrix.

gpz = serdes.CTLE.CombineSlices(gpz1,gpz2)
gpz = 
gpz(:,:,1) =

   1.0e+10 *

   -0.0000   -1.5321   -0.5575   -1.3848         0         0
   -0.0000   -1.5600   -0.4960   -1.4100         0         0
   -0.0000   -1.5879   -0.4436   -1.4352         0         0
   -0.0000   -1.6157   -0.3981   -1.4604         0         0


gpz(:,:,2) =

   1.0e+10 *

         0   -2.3771   -1.0493   -1.3093         0         0
   -0.0000   -1.7604   -0.7915   -1.3345         0         0
   -0.0000   -1.7936   -0.6845   -1.3596         0   -1.5321
         0         0         0         0         0         0

Create a CTLE from the 3D GPZ matrix.

CTLE3D = serdes.CTLE('Specification','GPZ Matrix','GPZ',gpz,'FilterMethod','Cascaded')
CTLE3D = 
  serdes.CTLE with properties:

   Main
             Mode: 2
    Specification: 'GPZ Matrix'
              GPZ: [4×6×2 double]
      SliceSelect: 0
     ConfigSelect: 0

  Show all properties

Input Arguments

collapse all

Input GPZ matrix, specified as a 2-D or 3-D matrix.

Input GPZ matrix, specified as a 2-D or 3-D matrix.

Input GPZ matrices contained in a cell array.

Output Arguments

collapse all

Combined output GPZ matrix, returned as a 3-D matrix.

Version History

Introduced in R2023b