OriginLab Corporation - Scientific Graphing and Data Analysis Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis

subtract_ref

Contents

Menu Information

Subtract Reference Data

Brief Information

Subtract on one dataset with another

Command Line Usage

1. subtract_ref iy1:=[Book1]Sheet1!Col(2) iy2:=[Book1]Sheet1!Col(3)

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>

Specified the reference data to be subtracted.

Subtract Common Range Only common

Input

int

0

Operate on the common range between the two curve

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 a curve by another one. When the two datasets' (curves) coordinates are not consistent, the two curves will be interpolated or extrapolated first.

Examples

  1. Import Gaussian.dat on \Samples\Curve Fitting folder.
  2. Highlight column B and select Plot: Line: 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.