model s-凯发k8网页登录
model s-parameter network
libraries:
rf blockset /
circuit envelope /
elements
description
the s-parameters block models a network defined by s-parameters in the rf blockset™ circuit envelope simulation environment. the device can have up to 65 ports. for an introduction to rf simulation, see the example, .
note
if you specify more than eight ports, the block does not simulate noise.
the block models s-parameter data in the rf blockset environment by fitting a rational function to the specified data. for more information about rational fitting of s-parameters, see the rf toolbox™ function.
note
during the fitting procedure, the block sets the
tendstozero
and qlimit
properties
of the rational
object to false
and
inf
, respectively.
s-parameters block mask icons are dynamic and indicate the current state of the applied noise parameter. this table shows you how the icons on this block vary based on the state of the simulate noise parameter on the block.
simulate noise: on | simulate noise: off |
---|---|
|
|
to model rf complex baseband s-parameters in simulink, use the idealized baseband block.
parameters
data source — data source
data file
(default) | network-parameters
| rational model
data source for s-parameters behavior, specified as one of the following:
data file
— name of a touchstone file with the extension.s2p
. the block ignores noise and nonlinearity data in imported files.network-parameters
— provide network parameter data such ass-parameters
,y-parameters
, andz-parameters
with corresponding frequency and reference impedance (ohms) for the s-parameters.rational model
— provide values for residues, poles, and direct feedthrough parameters which correspond to the equation for a rational model.in this rational model equation, each ck is the residue of the pole ak. if ck is complex, a corresponding complex conjugate pole and residue must also be enumerated. this object has the properties
c
,a
, andd
. you can use these properties to specify the residues, poles, and direct feedthrough parameters.
data file — name of network parameter data file
simrfv2_unitygain.s2p
(default) | character vector
name of network parameter data file, specified as a character vector.
dependencies
to enable this parameter, select data file
in data
source tab.
network-parameter object — network parameter objects as data source
off
(default) | on
select this parameter to use a network parameter object as the data source to model the s-parameters.
once you select this parameter, in the text box that opens, specify one of these:
network parameter object.
matlab® base workspace variable or a simulink® model workspace variable. the block evaluates if the specified variable is a network parameter object.
sparameters('default.s2p')
is the default network
parameter object when you select this parameter.
the network parameter objects that you can specify include:
dependencies
to enable this parameter, set data source to
network-parameters
.
network parameter type — network parameter type
s-parameters
(default) | y-parameters
| z-parameters
network parameter type, specified as s-parameters
, y-parameters
,
or z-parameters
.
dependencies
to enable this parameter, set data source to
network-parameters
.
network-parameters — network parameter values
[0 0;1 0]
(default) | multidimensional array | scalar
network parameter values specified as a multidimensional array or a scalar. when you specify network parameters as a multi-dimensional array, the third dimension of the s-parameter array must be of the same length as the frequencies vector specified in the frequency (db) parameter.
dependencies
to enable this parameter, set data source to
network-parameters
.
frequency (db) — frequency of network parameters
1e9 hz
(default) | scalar | vector | hz
| khz
| mhz
| ghz
frequency of network parameters, specified as a scalar or a vector in hz.
dependencies
to enable this parameter, set data source to
network-parameters
.
reference impedance(ohm) — reference impedance of network parameters
50
(default) | scalar
reference impedance of network parameters, specified as a scalar.
dependencies
to enable this parameter, set data source to
network-parameters
.
use rational object — rational object as data source
off
(default) | on
select this parameter to use a rational
object as the
data source to model s-parameter.
once you select this parameter, in the text box that opens, specify one of these:
rational
object.matlab base workspace variable or a simulink model workspace variable. the block evaluates if the specified variable is a rational object."
rational('default.s2p')
is the default
rational
object when you select this parameter.
the rational
objects that you can specify include:
dependencies
to enable this parameter, set data source to
rational model
.
residues — residues in order of rational model
0
(default) | vector
residues in order of rational model, specified as a vector.
dependencies
to enable this parameter, set data source to
rational model
.
poles — residues in order of rational model
0
(default) | vector
poles in order of rational model, specified as a vector.
dependencies
to enable this parameter, set data source to
rational model
.
direct feedthrough — direct feedthrough
{0 0:1 0}
(default) | array of vectors
direct feedthrough, specified as an array vector.
dependencies
to enable this parameter, set data source to
rational model
.
simulate noise — generate thermal noise waves
off
(default) | on
choose this parameter to generate thermal noise waves [1]. clear this parameter to stop simulating noise. for more information see, generate thermal noise.
note
this parameter is cleared when you specify more than eight ports.
ground and hide negative terminals — ground rf circuit terminals
on
(default) | off
select this parameter to ground and hide the negative terminals. clear this parameter to expose the negative terminals. by exposing these terminals, you can connect them to other parts of your model.
modeling options — model s-parameters
time domain
(rationalfit)
(default) | frequency domain
model s-parameters, specified as:
time domain (rationalfit)
technique creates an analytical rational model that approximates the whole range of the data. when modeling usingtime domain
, the plot invisualization
tab plots the data defined indata source
and the values in therational
function.frequency domain
computes the baseband impulse response for each carrier frequency independently. this technique is based on convolution. there is an option to specify the duration of the impulse response. for more information, see .for the , antenna, and s-parameters blocks, the default value is
time domain (rationalfit)
. for the transmission line block, the default value isfrequency domain
.
dependencies
to enable this parameter, set data source to either data
file
or
network-parameters
.
fitting options — rational fit fitting options
fit individually
(default) | share poles by column
| share all poles
rational fit fitting options, specified as fit
individually
, share poles by
column
, or share all
poles
.
rational fitting results shows values of number of independent fits, number of required poles, and relative error achieved (db).
dependencies
to set this parameter, select time domain
(rationalfit)
in modeling
options.
relative error desired (db) — relative error acceptable for the rational fit
-40
(default) | scalar
relative error acceptable for the rational fit, specified as a scalar.
dependencies
to set this parameter, select time domain (rationalfit)
in modeling
options.
maximum number of poles — maximum number of poles
48
(default) | positive scalar
maximum number of poles to control over the fitting procedure, specified
as a positive scalar. you can specify up to 99
poles.
dependencies
to set this parameter, select time domain
(rationalfit)
in modeling
options.
automatically estimate impulse response duration — automatically calculate impulse response
on
| off
select this parameter to automatically calculate impulse response. clear this parameter to manually specify the impulse response duration using impulse response duration.
dependencies
to set this parameter, select frequency domain
in modeling
options.
impulse response duration — impulse response duration
1e-10
(default) | scalar
impulse response duration, specified as a scalar.
dependencies
to set this parameter, first select frequency domain
in modeling
options. then, clear automatically estimate impulse
response duration
.
use only s-parameter magnitude with appropriate delay — use only s-parameter magnitude with appropriate delay
off
(default) | on
select this parameter to ignore the s-parameter phase and to delay the impulse response by half its length. you can use this parameter to shape spectral content with filter effects by specifying only magnitude.
this parameter uses the magnitude of the original data to obtain the impulse response of the block. this impulse response is centered about the time sequence and adds an inherent delay of half the duration of the impulse response. in the frequency domain, this translates to a linear monotonic decrease in phase throughout the given spectrum.
note
this parameter is applicable only for s-parameter data modeled in the frequency domain and introduces an artificial delay to the system.
adding a time delay (or frequency phase variation) to the system can result in unexpected behaviors. for example, in an unmatched system, delayed signals are bounced back and added to the original signals.
dependencies
to enable this parameter, set modeling options to
frequency domain
.
source of frequency data — frequency data source
extracted from data source
(default) | user-defined
frequency data source, specified as:
when source of frequency data is extracted
from data source
, the data source must
be set to data file
. verify that the specified data
file contains frequency data.
when source of frequency data is user-specified
,
specify a vector of frequencies in the frequency data parameter.
also, specify units from the corresponding drop-down list.
frequency data — frequency data range
[1e9:1e6:3e9]
hz (default) | vector | scalar
frequency data range, specified as a vector or a scalar in hz, khz, mhz, or ghz. specify frequency data as a scalar when you want to visualize a singe frequency s-parameter data.
dependencies
to enable this parameter, set source of frequency
data to user-specified
.
plot type — type of data plot
x-y plane
(default) | polar plane
| z smith chart
| y smith chart
| zy smith chart
type of data plot that you want to produce with your data specified as one of the following:
x-y plane
— generate a cartesian plot of your data versus frequency. to create linear, semilog, or log-log plots, set the y-axis scale and x-axis scale accordingly.polar plane
— generate a polar plot of your data. the block plots only the range of data corresponding to the specified frequencies.z smith chart
,y smith chart
, andzy smith chart
— generate a smith® chart. the block plots only the range of data corresponding to the specified frequencies.
parameter 1 — type of s-parameters to plot
s11
(default) | snn
type of s-parameters to plot, specified as snn
, where n
is the number of ports in the s-parameters block.
parameter 2 — type of s-parameters to plot
none
(default) | snn
type of s-parameters to plot, specified as snn
, where
n is the number of ports in the s-parameters
block.
format1 — plot format
magnitude (decibels)
(default) | angle(degrees)
| real
| imaginary
plot format, specified as magnitude (decibels)
, angle(degrees)
, real
,
or imaginary
.
format2 — plot format
magnitude (decibels)
(default) | angle(degrees)
| real
| imaginary
plot format, specified as magnitude (decibels)
, angle(degrees)
, real
,
or imaginary
.
y-axis scale — y-axis scale
linear
(default) | logarithmic
y-axis scale, specified as linear
or logarithmic
.
x-axis scale — x-axis scale
linear
(default) | logarithmic
x-axis scale, specified as linear
or logarithmic
.
plot — plot specified data
button
plot specified data using plot button.
more about
generate thermal noise
you can only generate thermal noise if the given s-parameters multiport components are passive.
to include the noise waves, the block augments the s-parameters equation:
a and b — customary wave vectors
c — noise wave vector
the noise wave vector, noise correlation matrix, and s-parameters have these relationships:
where:
k
— boltzmann's constantt
— system temperaturec
— noise wave vector
references
[1] wedge, scott, and david rutledge. “wave techniques for noise modeling and measurement.” ieee transactions on microwave theory and techniques 40, no. 11 (november 1992): 2004–12. https://doi.org/10.1109/22.168757.
version history
introduced in r2010br2022b: use network parameter and rational objects to model s-parameters
use network parameter and rational
objects created at the matlab
command line as the data source to model s-parameters by setting data
source to network parameters
and
rational model
. for more information, see
network-parameter
object and use rational
object.
r2022b: visualize single-frequency s-parameter data
visualize single-frequency s-parameter data by specifying single-frequency s-parameter data in the frequency data parameter.
r2022b: block parameter renamed
the frequency data parameter in the s-parameter block has been renamed to source of frequency data.
when you open a model created before r2022b containing the s-parameter block, the software replaces the frequency data parameter with the source of frequency data parameter.
r2021b: s-parameter network data construction in s-parameter block
starting in r2021b, the circuit envelope library s-parameters block uses the
function to perform rational fitting to complex frequency-dependent data. the
rational
object provides improved fitting speed. the block
also has a new parameter, maximum number of poles, to provide
additional control over the fitting procedure. you can specify up to 99
poles.
when you open a model created before r2021b containing the circuit envelope library s-parameter block, the software updates the extraction method to perform a rational fit with the new maximum number of poles parameter. the output of the model gets refitted and the refitted output might differ from the output in previous releases.
r2021b: s-parameter block icon updated
starting in r2021b, the s-parametrs block icon has updated. the block icons are now dynamic and show the current state of the noise parameter.
when you open a model created before r2021b containing a s-parametrs block, the software replaces the block icon with the r2021b version.
see also
| | mixer
matlab 命令
您点击的链接对应于以下 matlab 命令:
请在 matlab 命令行窗口中直接输入以执行命令。web 浏览器不支持 matlab 命令。
select a web site
choose a web site to get translated content where available and see local events and offers. based on your location, we recommend that you select: .
you can also select a web site from the following list:
how to get best site performance
select the china site (in chinese or english) for best site performance. other mathworks country sites are not optimized for visits from your location.
americas
- (español)
- (english)
- (english)
europe
- (english)
- (english)
- (deutsch)
- (español)
- (english)
- (français)
- (english)
- (italiano)
- (english)
- (english)
- (english)
- (deutsch)
- (english)
- (english)
- switzerland
- (english)
asia pacific
- (english)
- (english)
- (english)
- 中国
- (日本語)
- (한국어)