system of eqns 2 solve. Help please

2 views (last 30 days)
I have to solve the the following eqns for r1 & r2.
x =
((-ptr*(1-r2*ptr)+(1-ptr)*ptr*(1-r2*ptr))*(1-ptr)-ptr^3*(1-r2*ptr)^2-3*ptr*(1-r2*ptr)*(-ptr*(1-r2*ptr)+(1-ptr)*ptr*(1-r2*ptr)))*r1^2+((2-r2*ptr-ptr-(1-ptr)*(1-r2*ptr))*(1-ptr)+2*ptr^2*(1-r2*ptr)^2+(4-ptr-3*r2*ptr)*(-ptr*(1-r2*ptr)+(1-ptr)*ptr*(1-r2*ptr))-3*ptr*(1-r2*ptr)*(2-r2*ptr-ptr-(1-ptr)*(1-r2*ptr))+(1-ptr)*ptr*(1-r2*ptr)-(1-ptr)^2*ptr*(1-r2*ptr))*r1-ptr*(1-r2*ptr)^2+(4-ptr-3*r2*ptr)*(2-r2*ptr-ptr-(1-ptr)*(1-r2*ptr))-(1-ptr)*(1-r2*ptr)-(1-ptr)^2*r2*ptr
y =
((1-r1*ptr)*(1-ptr)*(2-(1-r1*ptr)*(1-ptr))+(1-r1*ptr)*ptr*(11-6*(1-r1*ptr)*(1-ptr)))*r2-(1-r1*ptr)*(11-6*(1-r1*ptr)*(1-ptr))
I used the following command
z = solve(x,y,r1,r2)
Result i got is z =
r1: [4x1 sym]
r2: [4x1 sym]
How to find r1 & r2 ????

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 22 Apr 2011
doc solve
r1 = z.r1
r2 = z.r2

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!