See the documentation for regress to understand how to work with the ‘carsmall.mat’ file. You should have it, since it’s been a part of MATLAB for a while.
You can see if you have it by running:
filelocation = which('carsmall.mat')
from a script or Command Window. When I ran it, the result was:
'C:\Program Files\MATLAB\R2020b\toolbox\stats\statsdemos\carsmall.mat'
so if you have the Toolbox, you should have the file.
The file in the webinar documentation just threw an error when I ran:
carData = importYearXLS(2007);
So it apparently doesn’t exist.
Best Answer