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

vshift

Contents

Brief Information

Shift a vector

Command Line Usage

1. vshift ix:=col(1) delta:=3 fill:=0 ox:=col(1);

2. vshift ix:=col(1) delta:=3 fill:=0 ox:=<new>;

Variables

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

Input

vector

<active>

Specifies the input data to be shifted.

Shifted Position (First Row) delta

Input

int

1

Specifies the new position for the first row.

Padding fill

Input

double

0

Specifies a padding value. Cells in the output vector whose indices are less than the delta variable will be filled with this value.

Output ox

Output

vector

<new>

Specifies the output for the shifted vector.

Description

The vshift function shifts the input vector and pads the first few cells in the new vector with a specified value.