You can use the min
function in MATLAB along with specifying the dimension you want to operate on to find the smallest value in each column of a matrix. Here's an example:
main.m154 chars9 lines
In this example, min(A, [], 1)
finds the smallest value in each column of matrix A and stores the results in a row vector.
Make sure to replace the sample matrix A
with your actual matrix.
gistlibby LogSnag