which smooth
You will find that you are using some other smooth function, not toolbox/curvefit/curvefit/smooth.m . In the official smooth function, line 36 is a comment.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!