Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Help: matlab max return wrong value?

  1. Jul 12, 2012 #1

    I am using matlab max to find maximum along dimension 4. However I must made some mistake because the returned value is not the maximum sometimes:
    ans =

    Can someone please help? Thanks.
    Last edited: Jul 12, 2012
  2. jcsd
  3. Jul 13, 2012 #2
    please post the entire code, something we can try to replicate

    are you using


  4. Jul 13, 2012 #3
    Did you name a previous variable/function max?
  5. Jul 18, 2012 #4


    User Avatar
    Science Advisor

    I often think that some new members here misread the title of this site as psychicsforums rather than physicsforums. How else can you explain posts like this one. :wink:
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook