It is possible to know how meshgrid organize the points?
Mostra commenti meno recenti
Hello!
I am creating a sphere of points like it is shown in image 1. The ideia is now, for each point, calculate the value of the electric field. That part is in image 2 and you can consider that the calculations are correct. After this, I want to plot the radiation filed with patternCostum, and for that, I need to have the electric field (E_points) organized in a matrix. As I have 10000 points, when I traverse the array of points to calculate the field the E_points array also have 10000x1 points. So I reshape it and then do the patternCostum(). - image 3.
The correct patternCostum is presented in image 4. It seems that my patternCostum is correct, but some E_points doesn't match with the Phi_points and Theta_points arrays. It is possible somehow know which point correspond to each theta and phi? Or the are some easier option?
Thank you a lot!
2 Commenti
KSSV
il 8 Giu 2022
Copy and paste your code here.
Bárbara Matos
il 8 Giu 2022
Modificato: Bárbara Matos
il 8 Giu 2022
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Create Plots on Maps in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!