2.2.2.3 mexpand

Matrix: Expand

Brief Information

Expand matrix by scaling in X and Y directions

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.