Usually that error comes when the function has been saved on path that MATLAB cannot reach.
Matlab checks for functions in the current directory and a saved list of paths.
To add a path to the search:
addpath('C:\...\')
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!