Main Content
filter
Class: matlab.compiler.mlspark.RDD
Namespace: matlab.compiler.mlspark
Return a new RDD containing only the elements that satisfy a predicate function
Syntax
result =
filter(obj,func,varargin)
Description
applies
a predicate function result
=
filter(obj
,func
,varargin
)func
to every element in obj
.
Elements that satisfy the criteria set by the predicate function are
retained, others are discarded. A predicate function is one that returns true
in
a given logical function.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2016b
See Also
map
| flatMap
| collect
| parallelize