MATLAB: Question about private functions

cftoolMATLABprivate

I have 2 functions with the same name, one is private, and the other is normal. I want to use the private one instead of the public one. How to realize this?
I actually came in this question when I use cftool. In fit function, it calls fro a checkbounds function. Under the folder of curvefit, it has a private function called checkbounds, while in another toolbox, there is another checkbounds function which is not private.
Many thanks!!

Best Answer

There is no reason the two versions should be in conflict. When running cftool, it should be calling its private version (private functions always get precendence), which is what you want.