% Andrew Puryear
% 362 Project - matrixexpand
%   Matlab filed used to create matrices for mesh plots.

function [ outp ] = matrixexpand( matrix, factor )

for i=0:size(matrix,1)-1
    for j=0:size(matrix,2)-1
        outp(i*factor+1:i*factor+factor,j*factor+1:j*factor+factor)=ones(factor)*matrix(i+1,j+1);
    end
end
        