Help: matlab max return wrong value?

  • Context: MATLAB 
  • Thread starter Thread starter yangf73
  • Start date Start date
  • Tags Tags
    Matlab Max Value
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 3K views
yangf73
Messages
1
Reaction score
0
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:
Physics news on Phys.org
please post the entire code, something we can try to replicate

are you using

max(A,[],4)

?
 
Did you name a previous variable/function max?
 
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: