build
Class: matlabtest.coder.MATLABCoderTester
Namespace: matlabtest.coder
Syntax
Description
build(
generates C code from a MATLAB® function by using MATLAB
Coder™ with the build-time inputs and build target type specified by
tester
,testCase
)tester
in the test case testCase
.
build
generates and compiles the code, generates an executable, and
stores the results in the BuildResults
property of tester
.
Input Arguments
Examples
Tips
By default, the test case generates code in a temporary directory. To preserve the generated files, use the
PreserveInFolder
name-value argument in the creation method when you construct an instance ofmatlabtest.coder.MATLABCoderTester
. When the equivalence test fails, MATLAB preserves the generated files regardless of whether or not you use this name-value argument.
Version History
Introduced in R2023a