buffermx (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

»查看产品信息 下载帮助（仅限Windows）

Owning Class: spectral analysis

Requires: MathScript RT Module

Syntax

Y = buffermx(x, n)

Y = buffermx(x, n, p)

Y = buffermx(x, n, p, option)

[Y, R] = buffermx(x, n)

[Y, R] = buffermx(x, n, p)

[Y, R] = buffermx(x, n, p, option)

[Y, R, L] = buffermx(x, n)

[Y, R, L] = buffermx(x, n, p)

[Y, R, L] = buffermx(x, n, p, option)

Legacy Name: buffer

Description

Resizes an input vector into a matrix.

Examples

Inputs

Name Description
x Specifies the input vector you want to resize. x is a real or complex vector.
n Specifies the number of data elements in each column of Y.
p Specifies the length of the overlap between adjacent columns. If p is greater than 0 and less than n, the overlap between adjacent columns equals p elements. If p is less than 0, LabVIEW skips -p elements between adjacent columns. If n is less than or equal to p, LabVIEW returns an error.
option Specifies the option to use to resize the matrix. If p is greater than 0 and less than n, option can be 'nodelay' or a vector of p elements that LabVIEW inserts at the beginning of the input vector x. If option is 'nodelay', LabVIEW does not insert any values at the beginning of x. If p is less than 0, option is an integer that specifies how many elements to delete from the beginning of x before LabVIEW constructs the matrix.

Outputs

Name Description
Y Returns the output matrix. If there are not enough elements in x, LabVIEW pads the last column of Y with zeros.
R Returns the residual vector if there are not enough elements to form a complete last column of Y.
L Returns information about the elements in the residual vector R. If p is greater than 0, L is a vector that contains the samples in R that LabVIEW did not pad with zeros. If p is less than 0 and R is empty, L is a scalar that indicates the number of missing elements LabVIEW needs to form a complete column with a length of n - p. If p is less than 0 and R is not empty, L equals 0.

Details

The following table lists the support characteristics of this function.

 Supported in the LabVIEW Run-Time Engine Yes Supported on RT targets Yes Suitable for bounded execution times on RT Not characterized

Examples

x = 1:20;
Y = buffermx(x, 4);
[Y, R] = buffermx(x, 5, -3);
[Y, R, L] = buffermx(x, 3, 2, [21, 21]);

﻿