How to solve this Matlab error: "Undefined function 'distance' for input arguments of type "double."

Hi,
I keep getting this error in matlab 2013: "Undefined function 'distance' for input arguments of type "double." Can anyone guid me on what actually went wrong?
Thanks alot,

 Accepted Answer

distance is not a built-in function
If your are using code from someone else than you should also ask them to provide the distance.m file

2 Comments

and it is probable this one http://www.mathworks.com/matlabcentral/fileexchange/71-distance-m but you should check if this is appropriate for the code you are using
Thank you so much for taking the time to answer my question. I'll check it out.

Sign in to comment.

More Answers (0)

Categories

Find more on Scripts in Help Center and File Exchange

Products

Tags

No tags entered yet.

Asked:

on 11 Jun 2015

Commented:

on 11 Jun 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!