Main Content

computeInterfaceHeaders

Class: Simulink.CodeImporter
Namespace: Simulink

Compute interface headers from specified source files

Since R2021b

Syntax

listOfHdr = computeInterfaceHeaders(obj)

Description

listOfHdr = computeInterfaceHeaders(obj), where obj is an object of class Simulink.CodeImporter, computes the interface header information for the custom code specified in the CustomCode of obj.

Input Arguments

expand all

Simulink® Code Importer object, specified as a handle to a Simulink.CodeImporter object.

Output Arguments

expand all

List of interface header files computed from specified custom code, returned as a string array. This value can be used to populate the InterfaceHeader property of the CustomCode property of obj.

Version History

Introduced in R2021b