The Quantopian platform has price and volume data available for pretty much all US equities from 01 Jan 2002 - current ( https://www.quantopian.com/data/quantopian/us_equity_pricing ). One can "get all the symbols and their daily closing price during a period of time" . One can work with all this data (ie the whole stock market) or one can filter for certain sub-sets (eg common stock and not ETFs). One can easily get daily close prices by using either the 'pipeline' or 'get_pricing' or 'data.history' methods. Check out the documentation (https://www.quantopian.com/help#important-concepts) or the tutorials (https://www.quantopian.com/tutorials/getting-started#lesson1)
This data is free and available to use as long as one uses the online Quantopian platform (either the algorithm IDE or the research notebooks). However, this data cannot be exported for use offline in matlab or other tools. This is pretty much the case for any sources on the web. The data providers don't want their data easily accessible to copy and re-post.
So, the data is available within Quantopian and all the excellent resources it offers, but if you want to work with it using matlab you are out of luck. I'd very much suggest going through the tutorials and the extensive set of lectures available here on Quantopian rather than investing time learning matlab. The iPython notebook environment here is very similar to matlab.