matlabtest.parameters.matfileBaseline
Syntax
Description
creates a baseline parameter that defines the data in the specified MAT file as baseline
data. The testing framework uses the baseline parameter when creating a test suite and
running the tests.p
= matlabtest.parameters.matfileBaseline(filename
)
To create baseline tests in your test class, use the matlabtest.parameters.matfileBaseline
function to set a property defined in a properties
block with the
TestParameter
, MethodSetupParameter
, or
ClassSetupParameter
attribute. Then, specify the property as an input
to the methods that test against the baseline data. For more information about baseline
tests, see Create Baseline Tests for MATLAB Code.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2024b