Total Solution Differential Equation
5 ビュー (過去 30 日間)
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.
>> syms s t
回答 (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.
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];