Second Order Differential Equation

조회 수: 2 (최근 30일)
Cristina Sofroniei
Cristina Sofroniei 2019년 6월 21일
댓글: Cristina Sofroniei 2019년 6월 21일
y''+3y'-6=0
y(0)=2
y'(0)=3
I have to solve this equation.
Just got an exam today from it and I couldn't solve it, so I failed it.
I have to build the algorithm to get it, but because I'm new to it so I don't know to do this.
->>> Did something really wrong that I didn't get any resoult.
And if you could show me more examples of this types of equations and how I cand solve them, it would be great. I can't really get them.
Thank you very much for your help!
function dy=test(t,y)
dy=zeros(2,1);
dy(1)=y(2);
dy(2)=y(1)+3.*y(2)-6;
end

채택된 답변

madhan ravi
madhan ravi 2019년 6월 21일
편집: madhan ravi 2019년 6월 21일
https://in.mathworks.com/help/matlab/ordinary-differential-equations.html - there are plenty of examples there , you were so close by the way , I’m pretty sure you’re capable of learning once you go through that link
  댓글 수: 1
Cristina Sofroniei
Cristina Sofroniei 2019년 6월 21일
I can't thank you enough for your answer.
I hope I'll manage to learn it.
Thank you very, very much!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by