expand()
Expands the dependent data of a variable into single points by introducing an additional inner independent variable
Syntax
y = expand(x)
Arguments
| Name | Description | Range | Type | Required |
|---|---|---|---|---|
| x | data to be expanded (dimension is larger than one and less than four) | (-∞, ∞) | integer, real, complex | yes |
Examples
Given a dependent data A which has independent variables B: If A is a 1 dimensional data containing 4 points (10, 20, 30, and 40) and similarly B is made up of 4 points (1, 2, 3, and 4),
Eqn A = [10,20,30,40]
Eqn B = [1,2,3,4]
Eqn C = vs(A,B,"X")
Using expand(C) increases the dimensionality of the data by 1 where each inner dependent variable ("X") consists of 1 point.
Eqn Y = expand(C)
| X | C | A | B | Y |
| 1 2 3 4 | 10 20 30 40 | 10 20 30 40 | 1 2 3 4 | X=1 10 X=2 20 X=3 30 X=4 40 |
Defined in
Built in
See Also
Notes/Equations
In addition to the application above, the expand() function can also be used to convert a matrix into an array or vector. For example, an S-parameter matrix can be converted into an array by using the equation arr=expand(S) .
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()