Main Content
addPreExecReportFcn
Add callback function to execute before each input data file executes
Syntax
cgvObj
.addPreExecReportFcn(CallbackFcn)
Description
adds a callback function to cgvObj
.addPreExecReportFcn(CallbackFcn
)cgvObj
.
cgvObj
is a handle to a cgv.CGV
object. run
calls CallbackFcn
before executing each input data file in cgvObj
. The callback
function signature
is:
CallbackFcn(cgvObj, inputIndex)
inputIndex
is a unique numerical identifier associated with input data in
cgvObj
.Examples
The callback function, PreExecutionReportFcn
,
is added to cgv.CGV
object, cgvObj
cgvObj.addPreExecReportFcn(@PreExecutionReportFcn);
PreExecutionReportFcn
is
defined as:function PreExecutionReportFcn(cgvObj, inputIndex) ... end