abcd
Description
[
constructs real diagonal form A,B,C,D
,sharedpoles
] = abcd(fit
)A
, B
,
C
, and D
state-space matrices from input
fit
, a rational
object. This function also
indicates whether or not each element of fit
has the same poles using
sharedpoles
output argument.
Examples
Construct State-Space Matrices from rational
Object
Create S-Parameters from the file named passive.s2p
.
S = sparameters('passive.s2p');
Perform rational fitting of the S-parameters.
fit = rational(S);
Construct state-space matrices from rational object, fit
.
[A,B,C,D,sharedpoles] = abcd(fit)
A = 16x16 sparse double matrix (20 nonzeros)
1.0e+11 *
(1,1) -0.0008
(2,1) -0.0011
(1,2) 0.0011
(2,2) -0.0008
(3,3) -4.0560
(4,4) -0.8359
(5,5) -0.5389
(6,6) -0.1148
(7,7) -0.0173
(8,8) -0.0008
(9,9) -0.0008
(10,9) -0.0011
(9,10) 0.0011
(10,10) -0.0008
(11,11) -4.0560
(12,12) -0.8359
(13,13) -0.5389
(14,14) -0.1148
(15,15) -0.0173
(16,16) -0.0008
B = 16x2 sparse double matrix (14 nonzeros)
(1,1) 1.4142
(3,1) 1.0000
(4,1) 1.0000
(5,1) 1.0000
(6,1) 1.0000
(7,1) 1.0000
(8,1) 1.0000
(9,2) 1.4142
(11,2) 1.0000
(12,2) 1.0000
(13,2) 1.0000
(14,2) 1.0000
(15,2) 1.0000
(16,2) 1.0000
C = 2×16
1011 ×
0.0001 0.0001 -2.8008 0.6205 0.0907 0.0831 -0.0015 -0.0006 -0.0001 -0.0001 -3.1065 2.4562 -0.7797 -0.0750 0.0010 0.0007
-0.0001 -0.0001 -3.1236 2.4641 -0.7827 -0.0750 0.0010 0.0007 0.0001 0.0001 -2.6254 0.4517 0.1564 0.0878 -0.0015 -0.0006
D = 2×2
0 0
0 0
sharedpoles = logical
1
Input Arguments
fit
— Rational fit
rational
object | rfmodel.rational
object
Rational fit, specified as a rational
or
rfmodel.rational
object.
Output Arguments
A,B,C,D
— State-space matrices
array of scalar numbers
State-space matrices, returned as an array of scalar numbers. The size of the state-space matrix elements are
A
— M-by-M array.B
— M-by-NumPorts
array.C
—NumPorts
-by-M array.D
—NumPorts
-by-NumPorts
array.where, M is
NumPoles
×NumPorts
andNumPoles
andNumPorts
are number of poles and ports, respectively, derived fromfit
.
sharedpoles
— Shared poles
1
| 0
Shared poles indicating whether or not each element of fit
has
the same poles, returned as 1
or 0
of data type
logical
.
Data Types: logical
Version History
Introduced in R2020a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
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
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)