Examining The Performance of MATLAB’s Matrix Capabilities, Testing on Euler’s Method Applied on The Diffusion Equation
DOI:
https://doi.org/10.32968/psaie.2022.3.9Keywords:
CPU-time, numerical methods, partial differential equations, MATLABAbstract
When one develops, tests and uses numerical methods to solve a differential equation, the performance of the method depends on the concrete way how the method is implemented and coded. In this tentative work, we solve the linear diffusion equation by the simplest explicit Euler method implemented with for loops as well as the built-in matrix operations of MATLAB. We obtain that the for loop performs better in one space dimension, but the matrix operations are faster in two space dimensions.
Downloads
Published
2023-01-04
Issue
Section
Articles