How can I Solve This Non Linear Parametrical System?
Show older comments
Hi, I tried to solve this equation but Matlab answered this. How can I solve? Thank you
>> syms x y z p r
>> [xAns yAns zAns] = solve([(-1+((1-p)^2))*x + (1-p)*r*y + p^(2)*z, 2*p(1-p)*x +((1-p)*(1-r)+r*p-1)*y + (1-r)*p*z, p^(2)*x + 2*r*(1-r)*y + (((1-r)^2) - 1)*z],[x y z])
Error using sym/subsindex (line 825)
Invalid indexing or function definition. Indexing must follow MATLAB indexing. Function arguments must be symbolic
variables, and function body must be sym expression.
Error in sym/subsref (line 870)
R_tilde = builtin('subsref',L_tilde,Idx);
Accepted Answer
More Answers (2)
Walter Roberson
on 15 Nov 2018
0 votes
p(1-p) is an attempt to index scalar symbol p at symbolic location 1-p .
Yuri Caridi
on 16 Nov 2018
0 votes
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!