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

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 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 Год назад +1

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