Plotting a vertical wind profile (direction and intensity)
10 次查看(过去 30 天)
显示 更早的评论
Hi,
I am trying to plot a vertical wind profile from using quiver. For now I had little to no success and I could really use some help. Here is my problem:
I have wind comenents u and v at different heights z. For example:
u=[-3.3939, -3.3114,-3.0002,-3.569 ,-4.5501,-5.0276,-5.4330,-5.8136,-5.5932,-5.0989]
v=[0.7531, 0.9402, 1.4697, 1.1063, 1.1577, 0.7243, 0.4756, 0.3075, 0.5864, 0.6493];
z=[100,200,300,400,500,600,700,800,900,1000];
I would like to have a plot with at every height an arrow (or if it possible a wind barb but let's just stick with the arrow for now) with the direction of the arrow related to the wind speed and it direction to its wind direction. Since the quiver function wants as inputs x,y u and v I created a dummy x vector of ones.
x=[1,1,1,1,1,1,1,1,1,1];
Then I try to plot using quiver as
quiver(x,z,u,v)
this -kind of work- but for the real case (more arrows) the visualization is not good. I tried to change the scale but with no better results.
Is there a smarter way that does not involve quiver to make the plot looks better, or what should I change in quiver properties?
thanks in advance
3 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Vector Fields 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!