Multigrid Method: Basic Concept Explanation + Full MATLAB/Octave Code

Sdílet
Vložit
  • čas přidán 15. 06. 2024
  • A short video on the Octave/MATLAB code I made while trying to understand the concept of Multigrid methods.
    Download of commented code:
    drive.google.com/uc?export=do...
    0:00 Intro
    1:32 Explanation
    4:30 Outro
  • Věda a technologie

Komentáře • 7

  • @azzagamal9243
    @azzagamal9243 Před rokem +1

    Doesn't work in Matlab 🥺

    • @Makstuff
      @Makstuff  Před rokem +1

      I don't have it installed, but if you give me the error messages I'm gonna take a look.

    • @azzagamal9243
      @azzagamal9243 Před rokem +1

      @@Makstuff '''Function definitions in a script must appear at the end of the file.
      Move all statements after the "AMG_refine" function definition to before the first local function
      definition.'''' when i do it , doesn't work also

    • @azzagamal9243
      @azzagamal9243 Před rokem +1

      Error in line 165

    • @Makstuff
      @Makstuff  Před rokem +2

      @@azzagamal9243 Thanks! Had to install Matlab after all to figure this out, but now it should work (or at least on version R2018a it does).
      Problems were 1) the octave commands "endif", "endfor", "endfunction" which I didn't know that Matlab required to all be just "end", 2) the unequal operator "!=" had to be "~=". Octave makes so much more sense btw 🤦‍♂

    • @azzagamal9243
      @azzagamal9243 Před rokem +1

      ​@@Makstuff thank you very much

  • @apocalypt0723
    @apocalypt0723 Před rokem +1

    This was actually a good explanation. Thank you for the video.