Hello all, I searched through the documentation for the anonymous function but I still didn't get anywhere with this!

`a= 1; b = 2; f1 =@(x, y) a*x + b*y; a=2; b=1; f2=@(x, y) a*x - b*y;`

My question is: why does f1(1,x) return -1 1 3 and why does f2(x,1) return -3 -1 1

This is not a homework help question but rather a study help question, I am reviewing for my final and I am stuck on this. I do not understand how matlab gets to these numbers. Many thanks in advanced!

## Best Answer