The input argument to the inline function is automatically determined by searching expr for an isolated lower case alphabetic character, other than i or j, that is not part of a word formed from several alphabetic characters.
So in essence you cannot use x1 or x2 ....
You may want to try an anonymous function instead.