This Matlab code is no longer supported. It has been superseded by a C++ version which you can find here: https://github.com/stulp/dmpbbo If you really want the old Matlab code, checkout the "master_deprecated" branch.
stulp/dmp_bbo_matlab_deprecated
Matlab code for Dynamic Movement Primitives and Black-Box Optimization
MATLAB