1. Open your command window
![](https://static.wixstatic.com/media/e919af_3fb68e13d9464a98a3620e64127b6b09~mv2.png/v1/fill/w_980,h_551,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/e919af_3fb68e13d9464a98a3620e64127b6b09~mv2.png)
2. Say, you want to create a random matrix of 4 rows and 5 columns with the matrix name as "x". Type, x = rand(4,5)
![](https://static.wixstatic.com/media/e919af_ccbe8bc194e948fcb1b976bc69856813~mv2.png/v1/fill/w_980,h_551,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/e919af_ccbe8bc194e948fcb1b976bc69856813~mv2.png)
3. Hit enter and you'll find your matrix is output. Each time you write the same command you will get a matrix containing different elements
![](https://static.wixstatic.com/media/e919af_9ca19eb8359c409fad221e0a6284a125~mv2.png/v1/fill/w_980,h_551,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/e919af_9ca19eb8359c409fad221e0a6284a125~mv2.png)
4. Type "clc" to clear out your command window
![](https://static.wixstatic.com/media/e919af_3fb68e13d9464a98a3620e64127b6b09~mv2.png/v1/fill/w_980,h_551,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/e919af_3fb68e13d9464a98a3620e64127b6b09~mv2.png)
Comments