| Contents | Index |
s_params_mp = snp2smp(s_params_np)
s_params_mp = snp2smp(s_params_np,Z0,n2m_index,ZT)
s_params_mp = snp2smp(s_params_np) converts the single-ended N-port S-parameters, s_params_np, into the single-ended M-port S-parameters, s_params_mp. M must be less than or equal to N.
s_params_mp = snp2smp(s_params_np,Z0,n2m_index,ZT) converts the S-parameter data using the optional arguments Z0, n2m_index, and ZT that control the conversion.
The following figure illustrates how to use the optional input arguments to specify the ports for the output data and the termination of the remaining ports.

Convert 3-port S-parameters to 3-port S-parameters with port indices swapped from [1 2 3] to [2 3 1]:
ckt = read(rfckt.passive,'default.s3p'); %default.s3p represents a real counterclockwise circulator s3p = ckt.NetworkData.Data; Z0 = ckt.NetworkData.Z0; s3p_new = snp2smp(s3p,Z0,[2 3 1])
Convert 3-port S-parameters to 2-port S-parameters by terminating port 3 with an impedance of Z0:
ckt = read(rfckt.passive,'default.s3p'); s3p = ckt.NetworkData.Data; Z0 = ckt.NetworkData.Z0; s2p = snp2smp(s3p,Z0);
Convert 16-port S-parameters to 4-port S-parameters by using ports 1, 16, 2, and 15 as the first, second, third, and fourth ports; terminate the remaining 12 ports with an impedance of Z0:
ckt = read(rfckt.passive,'default.s16p'); s16p = ckt.NetworkData.Data; Z0 = ckt.NetworkData.Z0; s4p = snp2smp(s16p,Z0,[1 16 2 15],Z0)
Convert 16-port S-parameters to 4-port S-parameters by using ports 1, 16, 2, and 15 as the first, second, third, and fourth ports; terminate port 4 with an impedance of 100 ohms and terminate the remaining 11 ports with an impedance of 50 ohms:
ckt = read(rfckt.passive,'default.s16p');
s16p = ckt.NetworkData.Data;
Z0 = ckt.NetworkData.Z0;
ZT = {};
ZT(1:16) = {50};
ZT{4} = 100;
s4p = snp2smp(s16p,Z0,[1 16 2 15],ZT)freqresp | rfmodel.rational | s2tf | timeresp | writeva

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |