matlab functions. how can i find minimum of an array?
Try,
[ymin, iymin] = min(y);
and then your x value is
x(iymin)
[C,I] = min(...) finds the indices of the minimum values of A, and returns
them in
output vector I. If there are several identical minimum values, the index of
the first one
found is returned.
--Mark
|