Matrix: Expand
Expand matrix by scaling in X and Y directions
1. mexpand
2. mexpand im:=MSheet cols:=2 rows:=2
3. mexpand im:=[MBook]MSheet cols:=2 rows:=3 om:=MySheet
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input Matrix | im |
Input MatrixObject |
|
Specifies the input matrix to be expanded. |
Col Factor | cols |
Input int |
|
Specifies a factor to increase the number of columns. For example, if Col Factor is 2, the number of columns in the output matrix will be twice the number of columns in the input matrix. |
Row Factor | rows |
Input int |
|
Specifies a factor to increase the number of rows. For example, if Row Factor is 2, the number of rows in the output matrix will be twice the number of rows in the input matrix. |
Output Matrix | om |
Output MatrixObject |
|
Specifies the output matrix. See the syntax here. |
This X-Function expands the input matrix. Biquadratic interpolation is used to calculate the values for the new cells.
Keywords:biquadratic, interpolation