Use an anonymous function like this:
estim = fmincon(@(y)fit_simp(y),X0,[],[],[],[],[],[],nonlcon,options);
Obviously you have to adjust your objective function to accept the parameters, i.e. fit_simp
becomes fit_simp(y)
This is directly from the documentation, search for anonymous in this page:
http://www.mathworks.com/help/optim/ug/fmincon.html and also http://www.mathworks.com/help/optim/pass-extra-parameters.html
I just saw in your code you want to pas in two extra parameters, X and Y. You might have to encapsulate these in a single variable for the anonymous function (but also maybe you can send both I'm not sure)
try
options.Y = Y;
options.X = X;
and then use @(options)fit_simp(options)