s2smm - Convert single-ended S-parameters to mixed-mode S-parameters
Syntax
[s_dd,s_dc,s_cd,s_cc]
= s2smm(s_params_even)
s_mm = s2smm(s_params_odd,option)
Description
[s_dd,s_dc,s_cd,s_cc]
= s2smm(s_params_even) converts the
2N-port, single-ended S-parameters s_params_even into N-port,
mixed-mode S-parameters. s2smm forms the mixed-mode
ports by grouping the single-ended ports in pairs by port number (index),
grouping odd-numbered ports first, followed by even-numbered ports.
s_mm = s2smm(s_params_odd,option) converts
the S-parameter data according the port-numbering convention specified
by option. You can also reorder the ports in s_params using
the snp2smp function.
Input Arguments
s_params_even |
s_params_even is a complex 2N-by-2N-by-K array
representing K single-ended, 2N-port
S-parameters. These parameters describe a device with an even number
of ports.
|
option |
option determines how the function orders
the ports: 1 — s2smm pairs
the odd-numbered ports together first, followed by the even-numbered
ports. For example, in a single-ended, 8-port network: Ports 1 and 3 become mixed-mode pair 1. Ports 5 and 7 become mixed-mode pair 2. Ports 2 and 4 become mixed-mode pair 3. Ports 6 and 8 become mixed-mode pair 4.
The following figure illustrates this convention for an 8-port
device.
 2 — s2smm pairs
the input and output ports in ascending order. For example, in a single-ended,
8-port network: Ports 1 and 2 become mixed-mode pair 1. Ports 3 and 4 become mixed-mode pair 2. Ports 5 and 6 become mixed-mode pair 3. Ports 7 and 8 become mixed-mode pair 4.
The following figure illustrates this convention for an 8-port
device.
 3 — s2smm pairs
the input ports in ascending order and the output ports in descending
order. For example, in a single-ended, 8-port network: Ports 1 and 2 become mixed-mode pair 1. Ports 3 and 4 become mixed-mode pair 2. Ports 8 and 7 become mixed-mode pair 3. Ports 6 and 5 become mixed-mode pair 4.
The following figure illustrates this convention for an 8-port
device.

|
s_params_odd |
s_params_odd is a complex (2N + 1)-by-(2N + 1)-by-K array
representing K single-ended, (2N-port
S-parameters. These parameters describe a device with an odd number
of ports.
The port-ordering argument option is not
available for (2N + 1)-by-(2N + 1)-by-K input
arrays. In this case, the ports are always paired in ascending order,
and the last port remains single-ended. For example, in a 7-port network:
Ports 1 and 2 become mixed-mode pair 1. Ports 3 and 4 become mixed-mode pair 2. Ports 5 and 6 become mixed-mode pair 3. Ports 7 remains single ended.
The following figure illustrates this convention for a 7-port
device.

|
Output Arguments
s_dd |
s_dd is a complex N-by-N-by-K array
containing K matrices of differential-mode, 2N-port
S-parameters (Sdd).
|
s_dc |
s_dc is a complex N-by-N-by-K array
containing K matrices of cross-mode, N-port
S-parameters (Sdc).
|
s_cd |
s_cd is a complex N-by-N-by-K array
containing K matrices of cross-mode, N-port
S-parameters (Scd).
|
s_cc |
s_cc is a complex N-by-N-by-K array
containing K matrices of common-mode, N-port
S-parameters (Scc).
|
s_mm |
s_mm is a complex (2N + 1)-by-(2N + 1)-by-K array
containing K matrices of mixed-mode S-parameters.
The parameters are organized in the matrix as follows:

|
Examples
Convert 4-port S-parameters to 2-port, mixed-mode S-parameters:
ckt = read(rfckt.passive,'default.s4p');
s4p = ckt.NetworkData.Data;
[s_dd,s_dc,s_cd,s_cc] = s2smm(s4p);
References
Granberg, T., Handbook of Digital Techniques for
High-Speed Design.Upper Saddle River, NJ: Prentice Hall,
2004.
See Also
s2scc | s2scd | s2sdc | s2sdd | smm2s | snp2smp
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit