How can I Solve This Non Linear Parametrical System?
古いコメントを表示
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);
採用された回答
その他の回答 (2 件)
Walter Roberson
2018 年 11 月 15 日
0 投票
p(1-p) is an attempt to index scalar symbol p at symbolic location 1-p .
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!