MATLAB: Substitute all solutions of a give system of equations.

equationsMATLABmupadsubstitutesystem

I would like to substitute all the solutions of a system of equations in the original system. For example I would like to do something like this in Mupad:
eqs:=[x^2-1,y^2-1]
solutions:=solve(eqs)
and then create a matrix which contains all the couples of solutions; I tried with evalAt and subs combined with map and op but had no luck.
Any suggestions?

Best Answer

syms x y
eqs=[x^2-1,y^2-1]
sol=solve(eqs)
M=[sol.x sol.y]