In this part of the example, you open and run a RF Blockset™ Equivalent Baseband example that uses file data to specify an amplifier in a physical subsystem. Then, you plot the network parameters of the physical subsystem, which consists of the General Amplifier, the Input Port, and the Output Port blocks.
Type sparam_amp
at the MATLAB® prompt to open the RF Blockset Equivalent Baseband example called “AMP Data File for
Amplifier”.
In the model window, click Run to run the simulation. Once the simulation has reached steady state, click Debug > Simulate > Stop to stop the simulation.
Double-click the Output Port block to open the block dialog box.
Select the Visualization tab and set the Output Port block parameters as follows:
In the Source of frequency data list,
select Derived from Input Port parameters
.
In the Plot type list, select
X-Y plane
.
In the Y Parameter1 list, select
S21
.
Click Plot.
This action plots the magnitude of S21 (in decibels) as a function of frequency on an X-Y plot.
S21 versus Frequency for a Physical Subsystem
In this part of the example, you add data to the plot you created in Plot the Network Parameters of a Subsystem.
Double-click the Output Port block to open the block dialog box.
Select the Visualization tab and change the value of
Y Parameter1 to S22
.
Click Plot.
This action adds S22 to the plot.
S21 and S22 versus Frequency for a Physical Subsystem
In this part of the example, you change the data on the plot you created in the previous steps of the example by modifying the Plot type.
Double-click the Output Port block to open the block dialog box.
Select the Visualization tab and change the value of
Plot type to Polar plane
, as
shown in the following figure.
As the figure shows, the value of Y Parameter1 remains as S22, the last parameter selected for the previous plot.
Click Plot.
This action creates a Polar plane plot of S22 as a function of frequency.
S22 versus Frequency for a Physical Subsystem
In the Output Port block dialog box, change the Plot
type to Composite data
to generate four
plots in one figure. The parameters for the plots are defined by the block,
so the Y Parameter1, Y Parameter2,
and X Parameter fields becomes invisible.
Click Plot.
This action creates a composite plot.
Composite Plot for a Physical Subsystem