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

Поділитися
Вставка
  • Опубліковано 2 лют 2025

КОМЕНТАРІ • 7

  • @azzagamal9243
    @azzagamal9243 Рік тому +1

    Doesn't work in Matlab 🥺

    • @Makstuff
      @Makstuff  Рік тому +1

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

    • @azzagamal9243
      @azzagamal9243 Рік тому +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 Рік тому +1

      Error in line 165

    • @Makstuff
      @Makstuff  Рік тому +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 Рік тому +1

      ​@@Makstuff thank you very much

  • @apocalypt0723
    @apocalypt0723 2 роки тому +1

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