2.2.29 subtract_ref

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. 

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input iy1

Input

XYRange

<active>

Input XY data range or curve.

Reference Data iy2

Input

XYRange

<unassigned>

Specify the reference data to be subtracted.

Subtract Common Range Only common

Input

int

0

Operate only where data ranges overlap.

Rescale Source Graph rescale

Input

int

0

Specify whether to rescale the source graph after subtraction.

Output oy

Output

XYRange

<input>

The output data range. See the syntax here.

X Minimum xmin

Output

double

<unassigned>

Minimum X value of output curve.

X Maximum xmax

Output

double

<unassigned>

Maximum X value of output curve.

X Mean xmean

Output

double

<unassigned>

Mean X value of output curve.

Y Minimum ymin

Output

double

<unassigned>

Minimum Y value of output curve.

Y Maximum ymax

Output

double

<unassigned>

Maximum Y value of output curve.

Y Mean ymean

Output

double

<unassigned>

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

1. Import Gaussian.dat on \Samples\Curve Fitting folder.
2. Highlight column B and select Plot > Basic 2D : Line to plot a curve.
3. Click Analysis: Data Manipulation: Subtract Reference Data to open Subtract Reference Data dialog.
4. 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