Hi, I try to get the minimum of a function which is defined at discrete points (i,j – integers). The simplest example would be to get the indices i, j which minimize the sum: sum(f(i:j)) Is there an optimization function in Matlab which deals with functions defined on discrete sets?
Thanks,
Razvan
Best Answer