2.8.21 minterp2
Contents
Menu Information
Analysis: Mathematics: 2D Interpolate/Extrapolate
Brief Information
Perform interpolation/extrapolation on matrix data
Command Line Usage
1. minterp2 im:=MBook1;
2. minterp2 im:=MBook1 method:=bicubic;
3. minterp2 im:=MBook1 cols:=10 rows:=10;
4. minterp2 im:=MBook1 xmin:=1 xmax:=10 ymin:=1 ymax:=10;
5. minterp2 im:=[MBook1]MSheet1!Mat(1) om:=[MBook1]MSheet2!Mat(1);
X-Function Execution Options
Please refer to the page for additional option switches when accessing the x-function from script
Variables
| Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
|---|---|---|---|---|
| Input Matrix | im |
Input MatrixObject |
|
The matrix that contains the input data |
| Method | method |
Input int |
|
Interpolation method.
|
| Number of Cols | cols |
Input int |
|
The number of columns in the output matrix |
| Number of Rows | rows |
Input int |
|
The number of rows in the output matrix
|
| Missing Value Pretreatment | missing |
Input int |
|
Preprocess missing values in 2D interpolation. Option Lists:
|
| First X | xmin |
Input double |
|
The minimum x value of the output matrix |
| Last X | xmax |
Input double |
|
The maximum x value of the output matrix |
| First Y | ymin |
Input double |
|
The minimum y value of the output matrix |
| Last Y | ymax |
Input double |
|
The maximum y value of the output matrix |
| Output Matrix | om |
Output MatrixObject |
|
The output matrix See the syntax here. |
Examples
- Select File: Open from the Origin menu to bring up the Open dialog. With the Files of Type drop-down list, select Matrix (*.ogm). Browse to \Samples\Matrix Conversion and Gridding\ folder under the Origin programming folder. And open 2D Gaussian.ogm.
- Select Analysis: Mathematics: 2D Interpolate/Extrapolate from the Origin menu to open the minterp2 X-Function.
- Enter 20 on the Number of Cols and Number of Rows edit box. And select spline as the Method.
- Click OK to perform the interpolation.
More Information
Please refer to this page in the User Guide for more information:
- Description
- Algorithm
- Reference.
Keywords:interpolate, extrapolate