function iw = worst(r, ind, badlist)
% function iw = worst(r, ind, badlist)

if nargin == 2, badlist = []; end;
[rs, rsi] = max(r);
iw = [ badlist ind(rsi)];
