How to connect the points in an polar plot?
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ashim
le 17 Juil 2014
Commenté : Matz Johansson Bergström
le 17 Juil 2014
I am trying to plot a hodograph plot as shown below. With the heklp of polar plot i could plot the points, however, i don't know how to connect a spline in between those points. Is it possible to do it somehow. I am posting my MWE.
Nomenclature:
- Ws - wind speed in m/s
- Wd - wind direction in degrees
- H - height for which the points are present in m
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/165811/image.png)
Ws = 15.*rand(10,1);
Wd = 360.*rand(10,1);
H = (20:20:200)';
Wd = Wd.*(pi/180);
[WdX, WsY] = pol2cart(Wd, Ws);
polar(WdX, WsY,'-b*');
0 commentaires
Réponse acceptée
Matz Johansson Bergström
le 17 Juil 2014
Have you tried to connect your points with splines? See http://www.mathworks.se/help/matlab/examples/splines-in-two-dimensions.html for an example.
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Splines 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!