How to enter matrices in MATLAB
a) Enter an explicit list of elements. Example:
A= [ 1 2 3; 3 4 5]
b) Generate matrices using built-in statements and functions. Example: A= eye(A)
c) Create matrices in M-files.
d) Load matrices from an external data file.