How to solve exponential equation in Matlab?

3 ビュー (過去 30 日間)
Mudasir Buledi
Mudasir Buledi 2017 年 1 月 18 日
コメント済み: Star Strider 2017 年 1 月 21 日
i need to to solve the equation Vr = Vs[1-exp((-R*t)/L)], for t using ''solve'' function, can't do it, there is error says ''can't find an implici solution'', Can anyone help plz.

採用された回答

Star Strider
Star Strider 2017 年 1 月 18 日
The correct syntax is important with the Symbolic Math Toolbox. You have to define your equation as an expression and assign that to a different variable (here ‘Eq1’).
The Code:
syms L R t Vr Vs
Eq1 = Vr == Vs*(1-exp((-R*t)/L));
t_sol = solve(Eq1, t)
t_sol =
-(L*log(1 - Vr/Vs))/R
  2 件のコメント
Mudasir Buledi
Mudasir Buledi 2017 年 1 月 21 日
Thank you!
Star Strider
Star Strider 2017 年 1 月 21 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by