Hi,
You can save both arrays a and b in another 2 dimentional array and then short this 2D array according to your array a then extract the required result.
Thanks
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!