plus=@(x,y) x + y + logical((x==(isnumeric(x)+isfinite(x)) & y==(isnumeric(y)+isfinite(y))));plus(2,1)plus(2,2)plus(2,3)
Standard input is empty
ans = 3 ans = 5 ans = 5
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!