Тёмный

Matlab Code for Predator-Prey Model 

Mike Saint-Antoine
Подписаться 4,3 тыс.
Просмотров 14 тыс.
50% 1

Hi everyone! This video is about how to simulate the Lotka-Volterra Predator-Prey model using Matlab.
Previous video going over the basics of the Predator-Prey model:
• Predator-Prey Model (L...
All the code from my videos is available on my Github:
github.com/mik...
This is the original lesson I made about simulating ODEs in Python, which is a bit more in depth:
• Lesson 2: Python Code ...
Thanks for watching and let me know if you have any questions!

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 24   
@MikeSaintAntoine
@MikeSaintAntoine 2 года назад
Hi everyone, thanks for watching! Here's the link to the code on my Github in case you want to try it for yourself (also feel free to add me as a friend on Github if you want 🙂) : github.com/mikesaint-antoine/Comp_Bio_Tutorials/blob/main/matlab_code/predator_prey.m
@beyzacetin6117
@beyzacetin6117 Год назад
Sir, thank you so much. Thanks to you, I was able to finish a very important article.
@MikeSaintAntoine
@MikeSaintAntoine Год назад
Thanks for watching Beyza 🙂
@mountainwolvesbd
@mountainwolvesbd 11 месяцев назад
Great video Sir.
@MikeSaintAntoine
@MikeSaintAntoine 10 месяцев назад
Thanks for watching! 🙂
@sethwhite4869
@sethwhite4869 2 года назад
Thank you so much. Saved us for a project!
@MikeSaintAntoine
@MikeSaintAntoine 2 года назад
No problem Seth, thanks for watching!
@anarosasb57803
@anarosasb57803 10 месяцев назад
Thank you so much, with this I could complete my project. I just have a question how can I see the equations x(t) and y(t)?
@MikeSaintAntoine
@MikeSaintAntoine 10 месяцев назад
Hi Ana! That's a great question and unfortunately I don't really have a good answer. This way of simulating the ODEs uses a numerical solver, which computes the trajectories of these variables with the given parameters, but unfortunately doesn't give us a symbolic solution for the x(t) and y(t) functions in terms of the parameters. Maybe there's a way to symbolically solve them in Matlab to get these equations, but unfortunately I don't know how to do it because I don't have much experience with Matlab. Usually I use other software like Wolfram Alpha or Mathematica to do symbolic calculations like these. Anyway thanks for watching and sorry I couldn't be more helpful!
@momsspaghetti3885
@momsspaghetti3885 2 года назад
My task looks way harder and if i don't solve it by the weekend i'm not allowed to write the exam function [N1, N2, t, f, N0] = lotka_volterra(N1i, N2i, eps1, eps2, gamma1, gamma2)
@MikeSaintAntoine
@MikeSaintAntoine 2 года назад
Hi, sorry for the late response on this comment! Hmm, it looks to me like this is basically the same model as in the video, except with different parameter names? Like N1 and N2 are the names of the prey and predators (or predators and prey), N1i and N2i are their starting values, and ps1, eps2, gamma1, gamma2 are the constant parameters? If you need help with your code though, feel free to send me and email at mikest@udel.edu. Maybe I can help with debugging or any other problems you're having with it. Thanks for watching!
@elearningmathinqatar4340
@elearningmathinqatar4340 Год назад
That's really great, may i ask you a question? I did three species model on matlab, but i have a problem , i have 4 steady states, how may I draw every steady states, do i have to add some comment over it?
@MikeSaintAntoine
@MikeSaintAntoine Год назад
Hi! I'm a little confused by your question. However if you want you can email me your code at mikest@udel.edu and I can try to take a look at it and help. Thanks for watching! 🙂
@learningtour5569
@learningtour5569 2 года назад
Sir, can u explain how to solve non-linear coupled differential equation (BVP) by rungekutta and shooting method?
@MikeSaintAntoine
@MikeSaintAntoine 2 года назад
Hey! Sorry, unfortunately I'm not very knowledgeable on that topic. However I did find another video by a guy who explains numerical methods for solving ODEs, so maybe this video will be helpful: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ZMgikZ-lcS8.html Thanks for watching and sorry I couldn't be more helpful with your question!
@linneajohansen297
@linneajohansen297 2 года назад
Hello! have you used explicit euler to solve the lotka-volterra equation in the video?
@MikeSaintAntoine
@MikeSaintAntoine 2 года назад
Hi Linnea! Unfortunately I don't know how to do that. I've gotten a bit spoiled with ODE solving and basically just use the built-in functions to solve them, so I don't have much experience writing the numerical solution methods from scratch. However maybe this video will be useful to you: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ukNbG7muKho.html Sorry I couldn't be more helpful!
@m.raflyyanuar9886
@m.raflyyanuar9886 2 года назад
I want to combine the plot. I tried using hold on and hold off but couldn't make it work. Can you please tell me how? Thanks in advance.
@m.raflyyanuar9886
@m.raflyyanuar9886 2 года назад
I solved it! I removed the subplots and then used the hold on. Thanks for the video!
@MikeSaintAntoine
@MikeSaintAntoine 2 года назад
@@m.raflyyanuar9886 Ah, sorry I didn't reply fast enough! Glad you solved it, and thanks for watching!
@nadilaarsya3371
@nadilaarsya3371 Год назад
Sorry sir, why doesn't it work when I run the program?
@MikeSaintAntoine
@MikeSaintAntoine Год назад
Hi Nadila, please send me an email at mikest@udel with your code and I will take a look! Maybe I can figure out why it isn't working.
@sidraiftikhar985
@sidraiftikhar985 2 года назад
Great
@MikeSaintAntoine
@MikeSaintAntoine 2 года назад
Thanks for watching Sidra! Let me know if you have any questions.
Далее
Python Code for Predator-Prey Model
16:10
Просмотров 14 тыс.
Euler's Method in Python: Predator-Prey Example
23:42
Просмотров 1,8 тыс.
ВЫЖИЛ В ДРЕВНЕМ ЕГИПТЕ!
13:09
Просмотров 180 тыс.
Песня РАСПУТИН на русском!🔥
00:56
Mathematical Biology. 14: Predator Prey Model
47:07
Просмотров 45 тыс.
Phase Space Plot for Predator-Prey Model (Python)
14:23
Predator-Prey Model (Lotka-Volterra equations)
8:31
Просмотров 36 тыс.
Predator-Prey Model (Lotka-Volterra)
9:01
Просмотров 7 тыс.
Predator-Prey model
12:20
Просмотров 20 тыс.
predator prey
8:44
Просмотров 1,8 тыс.
ВЫЖИЛ В ДРЕВНЕМ ЕГИПТЕ!
13:09
Просмотров 180 тыс.