Third order derivatives of external functions ERROR

Hi all,
I want to simulate a model with a third order perturbation. I use an external function from Matlab to get the lognormal cdf. The problem is that Dynare doesn't go through saying ''ERROR: third order derivatives of external functions are not implemented''
Any ideas on how can I solve this?
Regards
I want to simulate a model with a third order perturbation. I use an external function from Matlab to get the lognormal cdf. The problem is that Dynare doesn't go through saying ''ERROR: third order derivatives of external functions are not implemented''
Any ideas on how can I solve this?
Regards