This is what I usually do:
% Find the index of the minimum value in a and store it in the variable pos.
[~,pos] = min(a);
% Use pos to get the corresponding value from b:
b(pos)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!