
Total Solution Differential Equation
조회 수: 12 (최근 30일)
표시 이전 댓글
Hello!
I am trying to use the code I used. Can I ask for a second opinion regarding the codes that I used if its correct or wrong. This is to solve Total Solution Differential Equation using Matlab.

Matlab codes:
>> syms s t
>> dsolve('D2y=-12*Dy-32*y+32','y(0)=0','Dy(0)=0','t')
댓글 수: 0
답변 (1개)
Wan Ji
2021년 9월 2일
편집: Wan Ji
님. 2021년 9월 2일
If u(t) = 1, then your solution is right.
If it is a function with respect to time, then your solution is wrong.
Exact code:
syms y(t) u(t) t
dy = diff(y,t,1);
d2y = diff(y,t,2);
eq = d2y + 12*dy + 32*y - 32*u;
conds = [y(0)==0; dy(0) ==0];
dsolve(eq, conds)

댓글 수: 0
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!