2.2.29 subtract_ref
Contents
Menu Information
Analysis: Mathematics: Subtract Reference Data
Brief Information
Subtract one dataset from another
Command Line Usage
subtract_ref iy1:=[Book1]Sheet1!(1,2) iy2:=[Book1]Sheet1!(3,4) oy:=[Book1]Sheet1!(5,6) // Subtracts XY pair in cols 3&4 from XY pair in 1&2 and puts subtracted XY pair in cols 5&6.
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 | iy1 |
Input XYRange |
|
Input XY data range or curve. |
| Reference Data | iy2 |
Input XYRange |
|
Specify the reference data to be subtracted. |
| Subtract Common Range Only | common |
Input int |
|
Operate only where data ranges overlap. |
| Rescale Source Graph | rescale |
Input int |
|
Specify whether to rescale the source graph after subtraction. |
| Output | oy |
Output XYRange |
|
The output data range. See the syntax here. |
| X Minimum | xmin |
Output double |
|
Minimum X value of output curve. |
| X Maximum | xmax |
Output double |
|
Maximum X value of output curve. |
| X Mean | xmean |
Output double |
|
Mean X value of output curve. |
| Y Minimum | ymin |
Output double |
|
Minimum Y value of output curve. |
| Y Maximum | ymax |
Output double |
|
Maximum Y value of output curve. |
| Y Mean | ymean |
Output double |
|
Mean Y value of output curve.
|
Description
This tool is used to subtract one curve from another. When the two datasets' coordinates differ, the two curves will be interpolated or extrapolated with linear interpolation before subtraction occurs.
Examples
- Import Gaussian.dat on \Samples\Curve Fitting folder.
- Highlight column B and select Plot > Basic 2D : Line to plot a curve.
- Click Analysis: Data Manipulation: Subtract Reference Data to open Subtract Reference Data dialog.
- Select column C for Reference Data branch. And then click the OK button.
Then you can see a new curve is created.
Keywords:baseline correction, subtraction