Class: matlab.unittest.measurement.MeasurementResult
Package: matlab.unittest.measurement
Apply function across samples of MeasurementResult
array
[B1,...,Bm] = samplefun(fh,R)
[B1,...,Bm] = samplefun(fh,R,'UniformOutput',tf)
[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.