Matrix: Resize
Resize all matrices in sheet.
1.msresize option:=pad pad:=refl right:=4 top:=3 oms:=[<new>]<new>;
2.msresize interp:=lagrange cols:=64 rows:=32 x1:=1 x2:=10 y1:=1 y2:=10;
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input Matrix | ims |
Input MatrixLayer |
|
Specifies the input matrix. |
Resize Option | option |
Input int |
|
Specifies the method to resize the Matrix.
|
Shrink Method | shrink |
Input int |
|
According to the column factor and row factor, define the shrinked sub-range of the cells in the Matrix. For example, if Col Factor is 2 and Row Factor is 2, four cells (from every two columns and every two rows) will be a sub-range . This option specifies which value will be output when shrinked.
|
Interpolate Method | interp |
Input int |
|
Specifies the method to interplate the Matrix.
|
Pad Method | pad |
Input int |
|
Specifies the method to pad the Matrix.
|
Col Factor | cols |
Input int |
|
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.
For example, if Col Factor is 2, every two columns in the input matrix will be shrinked into one column. |
Row Factor | rows |
Input int |
|
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.
For example, if Row Factor is 2, every two rows in the input matrix will be shrinked into one row. |
X Coordinates Matrix | xmat |
Input MatrixObject |
|
When Interpolate Method is set to Barycentric, you can specify the Matrix Object as X coordinates to resize Matrix. |
Y Coordinates Matrix | ymat |
Input MatrixObject |
|
When Interpolate Method is set to Barycentric, you can specify the Matrix Object as Y coordinates to resize Matrix. |
Missing Value Pretreatment | missing |
Input int |
|
For the Missing Value, you can specify the pretreatment method.
|
Search Radius | radius |
Input double |
|
When Interpolate Method is Random Kriging (interp=kriging), you can specify search radius within which input sample points will be used to perform the interpolation. |
Minimum Points | min |
Input int |
|
When Interpolate Method is Random Kriging (interp=kriging), you can specifies the minimum number of points to be used for interpolation . |
Maximum Points | max |
Input int |
|
When Interpolate Method is Random Kriging (interp=kriging), you can specifies the maximum number of points to be used for interpolation . |
Smoothing Factor | smooth |
Input int |
|
When Interpolate Method is Random Kriging (interp=kriging), you can specifies the value of smoothing factor . |
Sampling Proportion | prop |
Input int |
|
When Interpolate Method is Inverse Distance Weighted (interp=idw), you can specifies the value of sampling proportion . |
Exponent | expo |
Input double |
|
When Interpolate Method is Inverse Distance Weighted (interp=idw), you can specifies the value of exponent . |
First X | x1 |
Input double |
|
Specifies the value of the first X coordinate. |
Last X | x2 |
Input double |
|
Specifies the value of the last X coordinate. |
First Y | y1 |
Input double |
|
Specifies the value of the first Y coordinate. |
Last Y | y2 |
Input double |
|
Specifies the value of the last Y coordinate. |
Pad Value | pval |
Input double |
|
When Pad Method is Constant pad=0, specifies a constant as pad value. |
Left Pad Columns | left |
Input int |
|
Specifies the number of left pad columns. |
Right Pad Columns | right |
Input int |
|
Specifies the number of right pad columns. |
Top Pad Rows | top |
Input int |
|
Specifies the number of top pad rows. |
Bottom Pad Rows | bottom |
Input int |
|
Specifies the number of bottom pad rows. |
Output Matrix | oms |
Output MatrixObject |
|
Specifies the output matrix. See the syntax here. |
You can use this X-Function to resize a matrix using one of four methods: Expand, Shrink, Interpolate and Pad.
mdim, mexpand, mproperty, mreplace, mrotate90, msetvalue, mflip, mtranspose , msmooth
Keywords:resize