Aug 25, 2009 #1 DDP Structural Apr 23, 2002 38 0 0 US If I have x:=1,2..4 y:=x+1 x=1,2,3,4 y=2,3,4,5 I can do max, but how do I get it to return what x causes the max? I cannot do differentiation because I have a more complex equation with absolute value and thus is discontinuous. Thanks
If I have x:=1,2..4 y:=x+1 x=1,2,3,4 y=2,3,4,5 I can do max, but how do I get it to return what x causes the max? I cannot do differentiation because I have a more complex equation with absolute value and thus is discontinuous. Thanks
Aug 25, 2009 #2 pstuckey Electrical Oct 6, 2005 160 0 0 If x and y are both vectors you can use: lookup(max,y,x) Peter Upvote 0 Downvote
Aug 25, 2009 Thread starter #3 DDP Structural Apr 23, 2002 38 0 0 US excellent..thanks Upvote 0 Downvote