? Input argument "M" is undefined

Istart to run my program and
The rank condition is verified.
but it says
??? Input argument “M” is undefined.

Error in ==> model_diagnostics at 38
endo_nbr = M.endo_nbr;

Error in ==> mypaper at 219
model_diagnostics;

Error in ==> dynare at 120
evalin(‘base’,fname) ;

It seems you are using an older Dynare version. In this case, either upgrade to 4.4.3 or use

[quote=“jpfeifer”]It seems you are using an older Dynare version. In this case, either upgrade to 4.4.3 or use

thanks for your kind help!,you are always so helpful!