How can I Solve This Non Linear Parametrical System?
Mostrar comentarios más antiguos
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);
Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 15 de Nov. de 2018
0 votos
p(1-p) is an attempt to index scalar symbol p at symbolic location 1-p .
Yuri Caridi
el 16 de Nov. de 2018
0 votos
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!