![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/179123/image.png)
How to create a ezcontour in cylindrical domain?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hi friends
i have a temperature profile that is a function of radious, r, like this:
syms r
T= -r ^ 2 + 1;
i want to create cylindrical contours in this domain: 0<r<1 ( with symbolic functions) i can do this work by Maple but i want draw it with matlab. the shape that i want to obtain is available in attached file. explain what command i should use or how can i change the coordinate type to cylindrical to recognize the T(r) as a 2D function.
thanks a lot
0 commentaires
Réponses (1)
Mike Garrity
le 4 Nov 2015
Can't you just add the definition of R in terms of X & Y?
syms x y
r = sqrt(x^2+y^2);
t = -r^2 + 1;
ezcontour(t)
axis equal
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/179123/image.png)
2 commentaires
Voir également
Catégories
En savoir plus sur Conversion Between Symbolic and Numeric dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!