how do i plot: y'' - y' = - t - 5 in Matlab

댓글 수: 1

Dyuman Joshi
Dyuman Joshi 2023년 1월 15일
편집: Torsten 2023년 1월 15일
Symbolic method -
syms y(t)
Dy=diff(y);
eq=diff(y,2)-Dy-2*t^2+t+5==0;
%random conditions
%You need conditions to obtain a specific answer
cond=[y(0)==0, Dy(0)==1];
z=dsolve(eq,cond)
z = 
fplot(z)

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

답변 (0개)

질문:

2023년 1월 15일

편집:

2023년 1월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by