samplefun
Class: matlab.unittest.measurement.MeasurementResult
Namespace: matlab.unittest.measurement
Apply function across samples of MeasurementResult array
Syntax
[B1,...,Bm] = samplefun(fh,R)
[B1,...,Bm] = samplefun(fh,R,'UniformOutput',tf)
Description
[B1,...,Bm] = samplefun( applies
a function fh,R)fh across the samples on each element
of a MeasurementResult array. Each output argument
from samplefun corresponds to an output argument
from fh and has the same size and shape as R.
[B1,...,Bm] = samplefun( indicates
if the output of fh,R,'UniformOutput',tf)fh can be returned without encapsulation
in a cell array. By default, fh must return scalar
values that can be concatenated into an array.
Input Arguments
Examples
Version History
Introduced in R2017a