@(x,y)find((max(x))*min(y')==max(y')*min(x)) ans([1 2], [1 9; 2 5; 16 8])
Standard input is empty
ans = @(x, y) find ((max (x)) * min (y') == max (y') * min (x)) ans = 3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!