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

mks

Contents

Brief Information

Get data markers in data plot

Additional Information

X-Function not designed for Auto GetN Dialog.

Command Line Usage

  1. mks sort:=0;
  2. dataset begin = {2, 3}; dataset end = {4, 6}; mks ob:=begin oe:=end mode:=1;

Variables

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

Input

XYRange

<active>
Specify the input data range to get the markers.
Beginning indices ob

Input/Output

vector

mksB
Specify the beginning indices of the data markers. The index is zero-based offset.
Ending indices oe

Input/Output

vector

mksE
Specify the ending indices of the data markers. The index is zero-based offset.
Sort by beginning indices sort

Input

int

1
When the Mode is set to get markers, this variable is used to specify whether to sort the output by beginning indices ascendingly.

Option list:

  • 1
    Sort the output indices.
  • 0
    Do not sort the output indices.
Mode mode

Input

int

0
This variable is used to set the operation mode, get markers or add markers.

Option list:

  • get:Get Markers
    Get markers, the output vectors are specified by variables ob and oe.
  • add:Add Markers
    Add markers, the beginning and ending indices are given by ob and oe respectively.

Description

This X-Function is used to get or add data markers in data plot. The beginning and ending indices of the markers are stored in two vector variables separately. The values in the vectors with the same vector index means a set of marker. When getting data markers, it allows to sort the output by the beginning indices ascendingly.