f = @(x)sum(x<x')+1 f([6 2 9 7 2 6 5 3 3 4])
Standard input is empty
f = @(x) sum (x < x') + 1 ans = 3 9 1 2 9 3 5 7 7 6
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!