Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

repmat (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the matrix class.

Syntax

d = repmat(a, b, c)

d = repmat(a, [b, c])

Description

Creates a matrix of repeated elements.

Examples

Inputs

Name Description
a Specifies the value of all elements in c. a is a matrix.
b Specifies the number of rows of a elements to create in c. b is a positive integer.
c Specifies the number of columns of a elements to create in c. c is a positive integer.

Outputs

Name Description
d Returns a b-by-c matrix whose elements are all a.

Examples

A = [1, 2, 3; 4, 5, 6]
D = repmat(A, 3, 2)


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit