[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Find the Max Value in a Vector

From: Michael Davidson
Subject: Find the Max Value in a Vector
Date: Tue, 7 Feb 2012 20:15:35 -0600

I have a (200:1) vector x1, and I want to find the maximal value in the vector.  It seems like max(x1) should give me the max value, but no, it's not even close to the right answer from manual inspection.  Hmmm.  Maybe that's the index into the row vector where the max is stored?  Although that makes no sense for a vector that isn't a row or column vector.  Nope.  That's wrong, too.  Is Octave capable of telling me the max value stored in a vector?  I've tried what the 'help' page says should work, but I think I just need to go buy Matlab.
reply via email to

[Prev in Thread] Current Thread [Next in Thread]