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
    Hi,

    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 =

    142.1571
    ----------------
    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

    max(A,[],4)

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

    uart

    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:
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook