ODEs in MATLAB

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • Describes the use of MATLAB's built in ODE solvers. Walks through the creation of simple first and second order differential equations.

Комментарии • 23

  • @animeshsinghal3405
    @animeshsinghal3405 3 года назад

    I've seen more than 5 videos on this topic. This is by far the best video that I've come across. Thanks for the wonderful explanation. Now I have crystal clarity :)

  • @MrMuscleTroll
    @MrMuscleTroll 4 года назад +2

    Man, this is exactly what I need. Thank you mr lifesafer!

  • @henryyu4497
    @henryyu4497 3 года назад

    This is the most helpful video I’ve seen about this topic, really helps to understand how does matlab works

  • @mediaemail7611
    @mediaemail7611 5 лет назад +1

    Thank you. Very helpful

  • @SequinBrain
    @SequinBrain 3 года назад

    any video showing how to put this in Matlab? getting errors so far the way it's written.

  • @allenvarughese1163
    @allenvarughese1163 5 лет назад

    could you recommend any textbook for solving ode in matlab

  • @EigenA
    @EigenA 3 года назад

    Careful! He’s a hero!

  • @James-sh7rr
    @James-sh7rr 6 лет назад

    Thank you for sharing. This is really helpful. :)

  • @suhwanju4998
    @suhwanju4998 4 года назад

    Very helpful!

  • @doc_microscope
    @doc_microscope 6 лет назад

    Good morning, I have a question to ask you: how can I adapt this system of equations in my case ?:
    d Is / dz = g_r * Ip * Is -alpha_s * Is;
    d Ip / dz = - (fp / fs) * g_r * Ip * Is -alpha_p * Ip;
    with g_r = 1 * 10 ^ -13 (coeff Raman), lambda_p = 1550nm, lambda_s = 1450 nm, alpha_s = alpha_p = 0.2 dB / km

    • @PostcardProfessor
      @PostcardProfessor  6 лет назад

      Change ls to y(1), lp to y(2), d ls / dz to dy(1), and d lp / dz to dy(2). You didn't mention fp or fs, but you can define all of your constants in the functions as well.

    • @PostcardProfessor
      @PostcardProfessor  6 лет назад

      Nothing stands out to me from your code, though I don't know the subject matter. Double check your initial conditions and the time you're integrating over.

    • @doc_microscope
      @doc_microscope 6 лет назад

      Why you don't respond? Are you angry or bored?

    • @PostcardProfessor
      @PostcardProfessor  6 лет назад

      I've responded as clearly and thoroughly as I can without going and doing a good amount of research on my own. If you have a specific question, I'll be happy to do my best to answer.

    • @doc_microscope
      @doc_microscope 6 лет назад

      I wanted a comparison with you on the code, plotting the graphs related to Is and Ip

  • @zhxilas7567
    @zhxilas7567 3 года назад

    i still dont understand. i want to cry

  • @jorgemercent2995
    @jorgemercent2995 3 года назад

    You didn't even define what is y, and then @8:18, you randomly call out y(2), what the fuka you doing man?

    • @EigenA
      @EigenA 3 года назад

      He did it correctly, he is indexing to the velocity element (2) of his y vector.