function [minRow minRowIndex minRowValue] = getMinRow(A, j)
%GETMINROW Row of 2D matrix with largest value in specified column.
%   MINROW = GETMINROW(A, J) returns the row of the MxN matrix A, the value
%   of which in the Jth column is the largest of A.

%   Author: Damien Teney

[minRowValue minRowIndex] = min(A(:, j));

% Keep only 1 minimum
minRowValue = minRowValue(1);
minRowIndex = minRowIndex(1);

minRow = A(minRowIndex, :);
