Main Content

addPostExecReportFcn

Add callback function to execute after each input data file executes

Syntax

cgvObj.addPostExecReportFcn(CallbackFcn)

Description

cgvObj.addPostExecReportFcn(CallbackFcn) adds a callback function to cgvObj. cgvObj is a handle to a cgv.CGV object. run calls CallbackFcn after each input data file is executed for the model. The callback function signature is:

CallbackFcn(cgvObj, inputIndex)
inputIndex is a unique numeric identifier associated with input data in the cgvObj.

Examples

The callback function, PostExecutionReportFcn, is added to cgv.CGV object, cgvObj

cgvObj.addPostExecReportFcn(@PostExecutionReportFcn);
where PostExecutionReportFcn is defined as:
function PostExecutionReportFcn(cgvObj, inputIndex)
...
end