How can I solve a system of equations with exponential terms in Matlab?

10 ビュー (過去 30 日間)
Faranak Khooban
Faranak Khooban 2021 年 7 月 8 日
回答済み: Alan Stevens 2021 年 7 月 9 日
I have this system of two equations with two virable and 5 parameters:
$$y - 1 - w - e^{v1 - y}/(a0 + e^{v0 - x}) = 0$$
$$x - 1 - e^{v0 - x} + (w - c)*e^{v1 - y}/(a0 + e^{v0 - x}) =0$$
How can solve this system of equcations in Matlab? using the code below doesn't give me answer:
syms x y w v1 v0 a0 c
[solx,soly] = solve([y - 1 - w - exp(v1 - y)/(a0 + exp (v0 - x)) == 0, x - 1 - (exp (v0 - x) + (w - c)*exp (v1 - y))/(a0 + exp (v1 - y)) ==0],[x,y]);
It gives me this warning: Warning: Unable to find explicit solution.

回答 (1 件)

Alan Stevens
Alan Stevens 2021 年 7 月 9 日
There is almost certainly no analytical solution here! For a numerical solution (given the values of the other parameters), try fminsearch.

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by