Getting Started    

Generating Matrices

MATLAB provides four functions that generate basic matrices.

zeros
All zeros
ones
All ones
rand
Uniformly distributed random elements
randn     
Normally distributed random elements

Here are some examples.


 Working with Matrices The load Command