A = randint(1,20,[1 100]);amax = max(A(rem(A,2)~=0));idx = find(A==amax);disp(['最大数:' num2str(amax)]);disp(['位置在:' num2str(idx)]);