I think you have a fileparts.m that you downloaded or wrote on your path ahead of the one included in MATLAB. When I opened release R2015a line 41 was:
It indicates that there is no function by the name that you called for inputs of the logical type. So either you called a function that does exist, but you called it with an input that it didn't expect, or there just is no such function.
Best Answer