I am not sure whether you are indicating that MATLAB has changed since the code was created and so the code no longer works, or if you are saying that you are using an older version of MATLAB that does not support some of the newer features?
Looking at the code I can see that it is designed for use with R2014b or neeer. Which MATLAB version are you using?
