Why the polar contour plot are reversly showed?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Jinsu Kim
il 20 Mag 2021
Risposto: Walter Roberson
il 20 Mag 2021
Hi,
I'm wondering why the ploar contour plot are reversly showed.
According to the data, Carbon.mat
The values are monotonically decreased, but contour figure showes reversely.
It seems quite strange, I have no idea about it.. I flipped the matrix but it doesn't work.
The graph is the result of running below codes, as you see in the figure value between core and surface are flipped..!

x = linspace( 0, 49 , 50 ) ;
theta = ( 0 : 0.5 : 90 ) * (pi/180) ;
[ th, r ] = meshgrid (theta, Carbon) ;
surf ( r.*cos(th), r.*sin(th), repmat(Carbon(:), 1, size(th,2)), 'linestyle', 'none' ) ;
view(2) ; grid off ; colorbar ;
Anyone could help me?
Thanks you in advances :D
0 Commenti
Risposta accettata
Walter Roberson
il 20 Mag 2021
[ th, r ] = meshgrid (theta, Carbon) ;
Should be meshing theta and x.
Consider using pol2cart()
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Surface and Mesh Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!