I recently upgraded my Matlab and I had to run an old code after a long time and I am getting an error in fsolve for optimget having too many inputs. I am having a hard time believing that it is an error in my code on how it calls fsolve, considering that it is crashing for optimget within the fsolve code having too many input arguments. I had a similar issue when another code used fminunc. I am sure if I tweak this line in fsolve, I might be able to make it work. But I am afraid that this might have an unintended impact on some other code that uses fsolve.