A question about using the solve function. My code is as follows,
syms a x y s = solve('x*exp(x)=y, y=a-x','x,y') s = [s.x s.y]
It works when I use a number such as "2" instead of "a" in the equation 'y=a-x'. But when I include the variable in the equation, it doesn't go. Since I want to change the "a" value outside the "solve" function, how can I do this?