In this lecture, I will convert the vector field given in polar coordinates into a cartesian mgrid domain.
On the basis of this example, you can easily convert not only polar coordinates into cartesian but also you can apply this technique to cylindrical coordinates.
Full description: http://mycoding.uk/a/converting_polar...
mgrid: • Numpy Mgrid and Meshgrid. Conversion ...
Video content:
0:00 - Problem
0:05 - Polar function definition
0:57 - Cartesian grid
1:28 - Creating a polar grid and calculating
2:15 - Converting to cartesian
3:05 - Displaying
#numpy #cartesian #pythoncoding