MATLAB: Does vpasolve give answers that ignore the assumptions

assumeassumealsoMATLABrangesymsvpasolve

I have a some symbolic variables, and I have put some assumptions on the variables to bound them:
>> syms a b
>> assume(0<a<1)
>> assumeAlso(0<b<2)
However, when I use "vpasolve", the assumptions are ignored, and I get a solution with a <0. How can I get "vpasolve" to use my assumptions?

Best Answer

According to the documentation, "vpasolve" ignores any assumptions on your variables:
However, you can instead specify the ranges you want to find solutions in as inputs to "vpasolve" in the following way:
>> vpasolve(<eqn>, [a b], [0 1;0 2]) % The matrix at the end sets the bounds for each of the variables.