Download Help (Windows Only) 
Owning Class: matrix
Requires: MathScript RT Module
padarray(x, n)
padarray(x, n, element)
padarray(x, n, option)
padarray(x, n, element, direction)
padarray(x, n, option, direction)
Adds elements to an array. padarray(x, n) adds n zeros to both ends of x.
Name  Description  

x  Specifies an array to add elements to. x is a vector or matrix.  
n  Specifies the number of elements to add to each dimension of x. n is a vector. The length of n must be equal to the number of dimensions of x.  
element  Specifies the element to add to x repeatedly. element is a scalar. The default is 0.  
option  Specifies how to add elements to x. option is a string that accepts the following values:


direction  Specifies the direction to add elements to x. direction is a string that accepts the following values:

Name  Description 

y  Returns x with added elements. 
The following table lists the support characteristics of this function.
Supported in the LabVIEW RunTime Engine  Yes 
Supported on RT targets  Yes 
Suitable for bounded execution times on RT  Not characterized 
X = rand(10, 1)
Y = padarray(X, 6, 0, 'post')
Z = fft(Y)