Well, you COULD do this, in a sense. Not using fit however, because tools to do curve fitting do not have anything like that as an option, nor realistically, should they. And weighting will not solve the problem either.
As I said, you COULD do it. Does it make mathematical, statistical sense? No, not a lot. You need to use a maximum likelihood estimation, so it will become an optimization problem, using a tool like fminunc or fmincon, from the optimization toolbox. (No, lsqnonlin, lsqcurvefit, lsqlin all cannot solve the problem you want to solve.) fminsearch could solve the problem though, since it becomes a simple optimization.
Is there any reason you want to do this? Because I don't see any reason to formulate the problem as a maximum likelihood estimation, since it wont give you anything better out the end.
Best Answer