MATLAB's documentation is really useful and readable. It tells us how to use MATLAB. It has working examples too. You can search it using your favorite internet search engine: this will find theofficial,correct andrecommended ways of using MATLAB. The first link above includes the title"Creating Multi-Dimensional Arrays" at the top of the page. Perhaps you might like to read this.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.