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 CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by