"Tim Booher" <email@example.com> wrote in news:eefb92c.-1 @webx.raydaftYaTP:
> I am trying to return a maximum eigenvalue and its associated > eigenvector, but can't because I don't know how to find the column > number associated with the maximum eigenvalue. For example, > > [v d]=eig([1 2 3; 4 5 6; 7 8 9]); > > max_eig_val=max(max(d)); > max_eig_vec=v(:,??); > > What can I put in for ??. ColumnIndex(max(max(d))) would be great if > it existed.