What is MATLAB ?. MATrix LABratory Originally, it was a front-end to FORTRAN matrix routines developed in the 1970’s @ U. of New Mexico and Stanford Today it is a powerful, interactive mathematics ENVIRONMENT with many powerful capabilities (matrices, symbolic math, analysis)
function a = randint(m,n)
a= floor (10 * rand(m,n)
Place in a file called randint.m
first line declares function name,input arguments and output arguments
without this line the file would be a script file
A statement z = randint(4,5) will pass 4,5 to m,n in the function file with the output result passed to variable z.