so this should be eigvals(m, size(m,1), size(m,1))[1]? I'm assuming the last one can't be helped.