Hi Derek,
I understand you are trying to measure all S-parameters between any two ports of a network within Simulink itself, without building the corresponding circuit as MATLAB code.
For your purpose, you may use the ‘S-Parameter Testbench’ block which is part of the RF Blockset.
Refer to the following steps in context of the model ‘simrf_coupled_pb’ which is part of the ‘LossyMulticonductorTransmissionLinesCircuitsExample’ example shipped with the RF Toolbox:
- Add a ‘S-Parameter Testbench’ block to the canvas and attach the ports between which you want to measure the S-parameters to ports 1 and 2 of the ‘S-Parameter Testbench’ block.
- In the Block Parameters of the ‘S-Parameter Testbench’ block, configure the properties of the stimulus. Make sure to clear the ‘Use internal Configuration block’ checkbox in case you are defining the settings of the network externally, as in the example.
- Upon running the simulation, you will find a ‘sparameters’ object created in the base workspace, containing the measurement data. Default name of the object will be ‘SParamObjOut’ which can be changed in the Block Parameters.
Please refer to the documentation of the S-Parameter Testbench for more details. https://in.mathworks.com/help/simrf/ref/sparametertestbench.html