fork(3) download
  1. f = @(x)sum(x<x')+1
  2.  
  3. f([6 2 9 7 2 6 5 3 3 4])
Success #stdin #stdout 0.21s 103360KB
stdin
Standard input is empty
stdout
f =

@(x) sum (x < x') + 1

ans =

   3   9   1   2   9   3   5   7   7   6