I leave this comment for someone who are troubling in checking the answer because of the 'absence of the cars.mat'.
Copy and paste the 'test suite' code in your 'scratch pad', then you could check whether your code is work or not before you submit it. Also, you could identify the process of your code by calling variables or lines of your code.