function B = vmirror(A) % ROWMULTIPLE Given an m x n matrix A % along with an integer i between 1 and m and a % nonzero scalar k this function will priduce a m x n % matrix B that is the result of multiplying row i of % A by k [m,n] = size(A); B = zeros(m,n); for i=1:m for j=1:n B(i,j) = A(m + 1 - i,j); end end