Convert 3D data to 2D axisymmetric

2 vues (au cours des 30 derniers jours)
Auwais Ahmed
Auwais Ahmed le 21 Avr 2022
Commenté : Mitch Lautigar le 21 Avr 2022
I have 3D data that I need to convert into a 2D axisymmetric domain. I need to average all the values along a certain theeta so that I end up with data in r and z. What would be the best way to go about it.
  1 commentaire
Mitch Lautigar
Mitch Lautigar le 21 Avr 2022
Depending on your data, you have a couple of options. I personally recommend the "squeeze" function, but someone else has asked this question as well. See my comments below.
  1. This has been asked before (https://www.mathworks.com/matlabcentral/answers/218519-converting-a-3d-data-into-2d) and it will depend on what your data looks like. If your data is a 1x1xn array where n is any real positive number, the squeeze function will get you there.
  2. If you are needing to do calculations per individual row, you are going to have to index and use for loops to handle the data. This should be a quick thing if you can get a function built to calculate per row and then just call the function to calculate each row.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by