I read the documentation and help about the symvar function but I'm still confused about how it works, especially for the following example:
clcclear allsyms x y asymvar(x + y, 1)
When I run this M-file, I get the answer 'x'. Why am I getting this answer? Why not 'y'? And what is the role of the number 1 written as the second argument?