<sheeba261991@gmail.com> wrote in message
news:9cc011c68da34ada8eb7b8afefe0ced3@googlegroups.com...
> 1) 0<=t<255 is lower limit to argmax. how to use this in matlab coding. 2)
> before this the variable h(t),w(t)should be in these variables or it can
> be replaced by any other variable.. because i initialised for h(t) is
> p(thresh) and for w(t) is temp1. pls answer for these two questions.
Are you using the ARGMAX function from this File Exchange submission?
http://www.mathworks.com/matlabcentral/fileexchange/24210argmaxargmin
Rather than doing that, if you have the expression you want to minimize
stored as data, call MAX with two outputs.
x = randperm(10)
[maxValue, maxValueLocation] = max(x)
maxValue will be 10 and x(maxValueLocation) will be 10.

Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com
