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
Input
MatrixObject
Specifies the input matrix to be expanded.
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.
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
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.
mshrink, msmooth
Keywords:biquadratic, interpolation