I have got this matlab code ,every time i try to run it an error saying that the

??? Input argument "state" is undefined.

Error in ==> pd_controlleraa at 9
if ~isfield(state, 'integral')...