addToProject
Add custom code and imported artifacts to MATLAB project
Description
,
where success
= obj.addToProject(ProjectFilePath
)obj
is an object of class Simulink.CodeImporter
or
sltest.CodeImporter
, adds the specified custom C/C++ code and the artifacts
generated when importing custom code (using the import
method) to an
existing MATLAB® project. Generated artifacts include a Simulink® library and a data dictionary, and for objects of class
sltest.CodeImporter
, a sandbox folder. If you choose to generate a test
harness and test files for the imported blocks, generated artifacts also include Simulink
Test™ files (Simulink
Test license required).
Invoke addToProject
only after a successful import of custom
code.