addToProject
Class: Simulink.CodeImporter
Namespace: Simulink
Syntax
success = addToProject(obj, ProjectFilePath)
Description
,
where success = addToProject(obj, 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).
Input Arguments
Output Arguments
Version History
Introduced in R2021a