필터 지우기
필터 지우기

How do I code rearrange equation?

조회 수: 2 (최근 30일)
Ye
Ye 2022년 11월 1일
댓글: MarKf 2022년 11월 1일
How do i code this to show the equation rearrange to find t????

답변 (1개)

Star Strider
Star Strider 2022년 11월 1일
편집: Torsten 2022년 11월 1일
Use the isolate funciton. (The solve function is also an option.)
syms a t v_0 x_t x_0
Eqn = x_t - x_0 == v_0*t + a*t^2/2
Eqn = 
Eqn = isolate(Eqn, t)
Eqn = 
  댓글 수: 2
Torsten
Torsten 2022년 11월 1일
What about the second solution of the quadratic ?
MarKf
MarKf 2022년 11월 1일
Solve does give both
syms xt x0 v0 t a
eqn = xt-x0 == v0*t+1/2*a*t^2
eqn = 
St = solve(eqn,t)
St = 

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Equation Solving에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by