![]() Having said that let us have a look at a simple coding project first, with MATLAB, then Python and Julia. Python packages are listed in the Python Package Index and Julia packages are collected in the General Registry. ![]() In MATLAB, there are ~90 toolboxes offered by the vendor MathWorks, and a large number of user-contributed toolboxes, many of which are offered through the File Exchange or personal websites like this blog. ![]() They are part of toolboxes (MATLAB) or packages (Python, Julia). Most of these functions, such as periodogram, are not included in the standard MATLAB, Python, or Julia package. On the next higher level, MATLAB, like Python and Julia, is also open source: the code of the FFT-based periodogram, for example, can be viewed by typing “edit periodogram” in the Command Window. Secondly, MathWorks offers a warranty, the possibility of certification of code and comprehensive information from MATLAB support. In MATLAB these functions are called “built-in functions”, but first, you can easily check the correctness of the algorithms on standardized examples, as it is done in the MRES book in numerous places. This continues one level up, as more advanced algorithms such as the FFT are also standardized and, if programmed correctly and free of floating point errors, should give the same result. At this level, algorithms in MATLAB are often not visible, in contrast to open-source Python and Julia, as you can in an excellent Julia example by Bogumił Kamiński on his blog. MATLAB, Python, and Julia share common roots in that they rely on the same standardized vectorized computations included in open-source FORTRAN libraries LAPACK and BLAS. And there are many similarities, not least because the languages inspire each other, even in the names of functions, which makes trilingual coding easy. If you want to write code for geoscientific data analysis independent of the programming language, a comparison of the syntax helps.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |