Originally Posted by

**metcat01** hello,

using MATLAB

I currently have a matrix of the form:

[54 4 2 6 45;

.1 .2 .3 .4 .5]

I am trying to find a way to extract the column that contains the minimum row one value.

ie, for this case to extract 2 & 3

row one is minimum receptances

row two is the corresponding spring constants

so really all i actually need is to be able to extract the spring value from row 2 that corresponds to the minimum value in row 1

any help would me much appreciated

Code:

A=[54 4 2 6 45;
.1 .2 .3 .4 .5];
[r1,id]=sort(A(1,:));
B=A(:,id(1))