Main Content

addPostExecFcn

Add callback function to execute after each input data file is executes

Syntax

cgvObj.addPostExecFcn(CallbackFcn)

Description

cgvObj.addPostExecFcn(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 numerical identifier associated with input data in the cgvObj.

Examples

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

cgvObj.addPostExecFcn(@PostExecutionFcn);
where PostExecutionFcn is defined as:
function PostExecutionFcn(cgvObj, inputIndex)
...
end