%This is a sample code to show how to multiply two matrices together.
%The inputs: none.
%
%The ouput:
% B = The desired matrix.
%How to call this function: put this script into the folder in which
%Matlab is open. Then type the following into Matlab:
% [C] = prodM();
%
% copyright by David F. Anderson, University of Wisconsin, 2013.
function [C] = prodM()
%Generate the first matrix.
A = [1 2 3;
4 5 6];
%Generate the second matrix
B = [7 8 9 10;
11 12 13 14;
15 16 17 18];
%Compute the product, C.
C = A*B;
end