MATLAB: Searching the minimum element of an array

arrayminimum

Hi..I have a question: if I have the result of a wavread, an array of samples, and I want to search the minimum element only between the last hundred elements and its index, how I can do this? I have some problems with the indices.

Best Answer

v=rand(150,1)
[a0,idx0]=min(v(end-100:end))
% a0 your min
% idx0 corresponding index