matlab.buildtool.tasks.MexTask.forEachFile
Class: matlab.buildtool.tasks.MexTask
Namespace: matlab.buildtool.tasks
Syntax
Description
group = matlab.buildtool.tasks.MexTask.forEachFile(
creates a task group containing a sourceFiles
,outputFolder
)MexTask
instance for each specified source
file and returns the task group as a matlab.buildtool.TaskGroup
object. Each task in the task group compiles the
corresponding source file into a binary MEX file and saves it to the specified output
folder.
group = matlab.buildtool.tasks.MexTask.forEachFile(
specifies options using one or more name-value arguments. For example, sourceFiles
,outputFolder
,Name=Value
)group =
matlab.buildtool.tasks.MexTask.forEachFile(["mymex1.c"
"mymex2.c"],"output",Options="-R2018a")
creates a task group containing two
tasks that build MEX files by using the interleaved complex API
(-R2018a
).
Input Arguments
Name-Value Arguments
Examples
Version History
Introduced in R2025a