Main Content

addHeaderReportFcn

Add callback function to execute before executing input data in object

Syntax

cgvObj.addHeaderReportFcn(CallbackFcn)

Description

cgvObj.addHeaderReportFcn(CallbackFcn) adds a callback function to cgvObj. cgvObj is a handle to a cgv.CGV object. run calls CallbackFcn before executing input data included in cgvObj. The callback function signature is:

CallbackFcn(cgvObj)

Examples

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

cgvObj.addHeaderReportFcn(@HeaderReportFcn);
where HeaderReportFcn is defined as:
function HeaderReportFcn(cgvObj)
...
end