transform a matrix with polar coordinates into a matrix with cartesian coordinates

16 visualizaciones (últimos 30 días)
hi, I have two sets of data, each of which I need to process. After the transformation a matrix must come out at the end of each.
i found two approaches. once you can plot them and put a meshgrid on them, and then convert the newly found points. Or you can somehow use pol2cart.
This is recorded data in a helix structure. Always the angle and the radius.
the original matrix data looks like this with imagesc https://imgur.com/a/YT7wuec
and I know something like that is supposed to come out: https://imgur.com/a/toYaqDC
My dataset looks like this: DataSet (512x1000)
in the lines is the radius, and in the columns the angle.
now I want to convert my single elements in the matrix PolMat into cartesian coordinates. And save this matrix as CartMat.
thanks for the help
MATLAB Version: 9.8.0.1380330 (R2020a) Update 2

Respuestas (1)

KSSV
KSSV el 7 de Jul. de 2020
Editada: KSSV el 7 de Jul. de 2020
  9 comentarios
KSSV
KSSV el 7 de Jul. de 2020
When you try
surf(z)
pcolor(z)
also you will get back your original value. By specifying x,y, you can plot it as a circle or as what you wanted.
Max M
Max M el 7 de Jul. de 2020
yes, but surf(z) is again there picture of my polar data :)
I want the polar data from (z) ((in z the polar data are stored as a matrix))transforming into Cartesian data. And then store this data in a new matrix.
The only thing I'm trying to do is store another matrix that doesn't contain polar data but Cartesian data.

Iniciar sesión para comentar.

Categorías

Más información sobre Polar Plots en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by