On Wed, Feb 8, 2012 at 1:15 PM, Michael Davidson <address@hidden>
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.
Works fine for me. What version of octave, on what OS? Could you provide a test case?
ans = 0.90880