| Neural Network Toolbox | |
| Provide feedback about this page |
Process matrices by removing rows with constant values
Syntax
[Y,PS] = removeconstantrows(max_range) [Y,PS] = removeconstantrows(X,FP) Y = removeconstantrows('apply',X,PS) X = removeconstantrows('reverse',Y,PS) dx_dy = removeconstantrows('dx',X,Y,PS) dx_dy = removeconstantrows('dx',X,[],PS) name = removeconstantrows('name'); FP = removeconstantrows('pdefaults'); names = removeconstantrows('pnames'); removeconstantrows('pcheck',FP);
Description
removeconstantrows processes matrices by removing rows with constant values.
removeconstantrows(X,max_range) takes X and an optional parameter,
X |
Single N x Q matrix or a 1 x TS row cell array of N x Q matrices |
max_range |
Maximum range of values for row to be removed (default is 0) |
Y |
Each M x Q matrix with N - M rows deleted (optional) |
PS |
Process settings that allow consistent processing of values |
removeconstantrows(X,FP) takes parameters as a struct: FP.max_range.
removeconstantrows('apply',X,PS) returns Y, given X and settings PS.
removeconstantrows('reverse',Y,PS) returns X, given Y and settings PS.
removeconstantrows('dx',X,Y,PS) returns the M x N x Q derivative of Y with respect to X.
removeconstantrows('dx',X,[],PS) returns the derivative, less efficiently.
removeconstantrows('name') returns the name of this process method.
removeconstantrows('pdefaults') returns the default process parameter structure.
removeconstantrows('pdesc') returns the process parameter descriptions.
removeconstantrows('pcheck',FP) throws an error if any parameter is illegal.
Examples
Here is how to format a matrix so that the rows with constant values are removed.
Next, apply the same processing settings to new values.
Reverse the processing of y1 to get x1 again.
See Also
fixunknowns, mapminmax, mapstd, processpca
| Provide feedback about this page |
![]() | randtop | removerows | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |