Neural Network Toolbox™ Previous page   Next Page 
removerows
 Provide feedback about this page

Process matrices by removing rows with specified indices

Syntax

Description

removerows processes matrices by removing rows with the specified indices.

removerows(X,ind) takes X and an optional parameter,

X
N x Q matrix or a 1 x TS row cell array of N x Q matrices
ind
Vector of row indices to remove (default is [])

and returns

Y
Each M x Q matrix, where M == N-length(ind) (optional)
PS
Process settings that allow consistent processing of values

removerows(X,FP) takes parameters as a struct: FP.ind.

removerows('apply',X,PS) returns Y, given X and settings PS.

removerows('reverse',Y,PS) returns X, given Y and settings PS.

removerows('dx',X,Y,PS) returns the M x N x Q derivative of Y with respect to X.

removerows('dx',X,[],PS) returns the derivative, less efficiently.

removerows('name') returns the name of this process method.

removerows('pdefaults') returns the default process parameter structure.

removerows('pdesc') returns the process parameter descriptions.

removerows('pcheck',FP) throws an error if any parameter is illegal.

Examples

Here is how to format a matrix so that rows 2 and 4 are removed:

Next, apply the same processing settings to new values.

Reverse the processing of y1 to get x1 again.

Algorithm

In the reverse calculation, the unknown values of replaced rows are represented with NaN values.

See Also

fixunknowns, mapminmax, mapstd, processpca


 Provide feedback about this page 

Previous page removeconstantrows revert Next page

 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS