Second order differential equation

Hi I want to solve a differential equation in matlab and plot the solution
y”-Ay+B=0 initial condition y(1)=35.5 and A and B are known contant values.

댓글 수: 2

James Tursa
James Tursa 2018년 4월 14일
Have you looked at the examples in the ode45 doc? What is the y' initial condition?
Star Strider
Star Strider 2018년 4월 14일
You have our permission.
If you need help, see the documentation for the ode45 function to understand how to convert it to a system of two first-order differential equations.
The Symbolic Math Toolbox can also help. First, write it as a symbolic second-order differential equation. Then use the odeToVectorField and matlabFunction functions to create it as a system of two first-order differential equations that you can solve with ode45.

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

답변 (0개)

카테고리

질문:

2018년 4월 14일

댓글:

2018년 4월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by