Undefined function pdist2

Problem

Runtime error: "Failed While Running Modules - Undefined function pdist2 for input arguments of type function_handle."


Solution

This error is caused by a software dependency: the Statistics and Machine Learning Toolbox for MATLAB must be installed for the 'pdist2' (distance between two objects) function to work.



Please follow the steps listed here to install the Statistics and Machine Learning Toolbox: How to Install a MATLAB Toolbox


Version Information

ABC Tracker has been tested to work with Statistics and Machine Learning Toolbox version 10.2 or later.


Technical Details

ABC Tracker uses the 'pdist2' function of the Statistics and Machine Learning Toolbox to calculate distances between objects.