It may be the same issue as this one:
https://www.mathworks.com/matlabcentral/answers/473469-error-in-fmincon-undefined-getipoptions
Run the following line in the Command Window to verify the function is in your system.
which -all getIpOptions
Best,
Raymundo