Solving 2 eq in matlab
10 ビュー (過去 30 日間)
古いコメントを表示
Can anybody tell me how I can find solutions for a and b in these eq using matlab?
syms a b
t1 = 0.1
t2 = 0.2
b = 2 + a*exp((-(t1-1))/0.3)
a = 4 + (b - 1)*exp(-t2/0.667)
0 件のコメント
回答 (1 件)
Walter Roberson
2020 年 11 月 4 日
sola = solve(a)
solb = subs(b, a, sola)
1 件のコメント
Ameer Hamza
2020 年 11 月 4 日
I think this will not give correct solution. It should be like this
syms a b
t1 = 0.1;
t2 = 0.2;
eq1 = b == 2 + a*exp((-(t1-1))/0.3);
eq2 = a == 4 + (b - 1)*exp(-t2/0.667);
sol = solve([eq1 eq2])
sola = sol.a;
solb = sol.b;
参考
カテゴリ
Help Center および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!