matlabtest.baselines.MATFileBaseline Class
Namespace: matlabtest.baselines
Description
The matlabtest.baselines.MATFileBaseline
class represents the baseline data stored in a MAT file for
baseline testing. For more information about baseline tests, see Create Baseline Tests for MATLAB Code.
You cannot create an object of the matlabtest.baselines.MATFileBaseline
class directly. The testing
frameworks automatically instantiates the MATFileBaseline
class for baseline
parameters created using the matlabtest.parameters.matfileBaseline
function. For example, in the
ExampleTest
class, the framework passes a MATFileBaseline
object to the verifyEqualsBaseline
qualification method.
classdef ExampleTest < matlab.unittest.TestCase properties (TestParameter) baseline = matlabtest.parameters.matfileBaseline("testdata.mat") end methods (Test) function baselineTest(testCase,baseline) actual = magic(5); testCase.verifyEqualsBaseline(actual,baseline) end end end
The matlabtest.baselines.MATFileBaseline
class is a handle
class.
Properties
Methods
Version History
Introduced in R2024b