VirtualMatrix.Repeat(Variable, Variable) Method

Top 

Description

Returns a matrix consisting of the specified value repeated the specified number of times.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode.

Click here to see the documentation for this object in nanosecond timing precision mode.

 

Method Signature

VirtualMatrix.Repeat(

Variable rowRepeats,


Variable colRepeats)

 

 

Arguments

rowRepeats


Description:

The number of times to repeat in the row direction.

Valid Range:

rowRepeats ≥ 1

 

 

colRepeats


Description:

The number of times to repeat in the column direction.

Valid Range:

colRepeats ≥ 1

 

 

 

Return Value

Type:

Matrix of number

 

 

The matrix formed from the repeating process.

 

Syntax

myMatrix1 = [1,2; 3,4].Repeat(myVariable1, myVariable2);

 

 

See also

VirtualMatrix Object