matlab.buildtool.tasks.MexTask.forEachFile
R2026bClass: matlab.buildtool.tasks.MexTask
Namespace: matlab.buildtool.tasks
Syntax
Description
creates a task group containing a group = matlab.buildtool.tasks.MexTask.forEachFile(sourceFiles,outputFolder)MexTask instance for each specified source
file. Each task in the task group compiles the corresponding source file into a binary MEX
file and saves it to the specified output folder.
specifies options using one or more name-value arguments. For example, group = matlab.buildtool.tasks.MexTask.forEachFile(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
Output Arguments
Examples
Version History
Introduced in R2025a