Bouncing Ball Project - ODE Event Function

Опубликовано: 10 Январь 2025
на канале: Laplace Academy
5,290
73

Today we discuss event function sin MATLAB ODE solvers.

In the previous tutorial we learned how to solve a differential equations in MATLAB using ode45 command.

Now we will learn a powerful feature to solve complicated examples: event function.
Whenever we want to stop the ODE solver at some event, but we don't know the exact time of the event, we should define it as an event function and tell MATLAB to stop the code at that event


🔻🔻🔻🔻🔻🔻🔻🔻🔻🔻🔻🔻🔻🔻🔻🔻
Links To Other Tutorials, which might be of help to you:

To solve a differential equation numerically, using ode45:
   • Numerically Solve Differential Equati...  

To know more about odeset and ode45 settings:
   • ode45 Part 2 | Advanced Settings for ...  

To solve a differential equation analytically, using dsolve:
   • Solve Differential Equations Analytic...  

If you want to solve any equation in MATLAB:
   • Learn to Solve Any Equation with MATLAB  

If you want to know more about symbolic tools in MATLAB:
   • MATLAB Symbolic Toolbox | Beginner's ...  

If you want to learn 2d Plotting in MATLAB:
   • 2D Plotting in MATLAB | MATLAB Tutori...  

What do you want my next tutorial to be? 😉 Leave me a comment..


♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦
This video is a part of Differential Equations in MATLAB playlist. You can see the full playlist in the link below:
   • Differential Equations in MATLAB  

You can also see other MATLAB projects in this link:
   • MATLAB Projects  

Please consider hitting the SUBSCRIBE button. Or click on the link below:
https://bit.ly/3q1he3v

If you want to learn MATLAB:
https://bit.ly/3q1he3v

You can also follow me on
Instagram:
  / laplaceacademy  

Facebook:
  / laplaceacademy  

LinkedIn:
  / laplaceacademy  

Twitter:
  / laplace_academy  

0:00 - Problem definition
0:43 - PART 1: writing ode45 command
1:45 - PART 2: Defining event function
5:21 - PART 3: Solving for 10 iterations





#laplaceacademy #matlab #differentialequation