Porting code from Matlab to Python (training course, online)

6th October 2022 07:00 AM
7th October 2022 14:30 PM

Dr. Sandra Diaz


(Course no. 1712022 in the training programme 2022 of Forschungszentrum Jülich)

This course will take place as an online event. The link to the online platform will be provided to the registrants only.


Python is becoming a popular language for scientific applications and is increasingly used for high performance computing. In this course we want to introduce Matlab programmers to the usage of Python. Matlab and Python have a comparable language philosophy and Python offers complementary alternatives for optimizations and parallelization. Python also provides high portability and flexibility (interaction with other open source and proprietary software packages) without any licensing costs.

The training course will be divided into three stages: First, attendants will learn how to do a direct translation of language concepts from Matlab to Python. Then, optimization of scripts using more Pythonic data structures and functions will be shown. Finally, code will be taken to the supercomputers where basic parallel programming (MPI) will be used to exploit parallelism in the computation.

The course will focus on numerical and statistical analysis as well as on image processing applications.

This course involves theoretical and hands on sessions which will be guided by experts in Python, Matlab and High Performance Computing. Attendants are highly encouraged to bring their own Matlab scripts.


Knowledge of Matlab. Basic knowledge of Python is recommended. No prior knowledge of MPI or supercomputer usage is required.

Target audience:

This course is intended for master and PhD students, postdocs and scientists who want to enhance the performance of their scripts and algorithms currently running on Matlab.


This course is given in English.


2 days


6-7 October 2022, 09:00-16:30



Number of Participants:

minimum 5


Dr. Sandra Diaz, JSC


  • Institute for Advanced Simulation (IAS)
  • Jülich Supercomputing Centre (JSC)
Building 16.15 /
Room R 2006
+49 2461/61-8913

Course material:

Slides and exercises

Last Modified: 18.10.2022