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

mexpand

Contents

Menu Information

Expand

Brief Information

Expand for every cell in the active matrix according to the column and row factors

Command Line Usage

1. mexpand

2. mexpand im:=MSheet cols:=2 rows:=2

3. mexpand im:=[MBook]MSheet cols:=2 rows:=3 om:=MySheet

Variables

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

Input

MatrixObject

<active>

Specifies the input matrix to be expanded.

Col Factor cols

Input

int

2

Specifies a factor to increase the number of columns. For example, if Col Factor is 2, the number of columns in the output matrix will be twice the number of columns in the input matrix.

Row Factor rows

Input

int

2

Specifies a factor to increase the number of rows. For example, if Row Factor is 2, the number of rows in the output matrix will be twice the number of rows in the input matrix.

Output Matrix om

Output

MatrixObject

<input>

Specifies the output matrix.

See the syntax here.

Description

This X-Function expands the input matrix. Biquadratic interpolation is used to calculate the values for the new cells.

Related X-Functions

mshrink, msmooth