How do i plot a scatter plot of wind speed and wind direction?

How do i plot a scatter plot of wind speed and wind direction with wind speed represented by different colours indicating different wind speeds by a colorbar. I have attached an input data file and a sample output file. Kindly suggest how to do the same.

4 件のコメント

Chad Greene
Chad Greene 2016 年 6 月 28 日
The example scatter plot image you provide also shows a third variable. It seems to show angle, distance from the center of the polar plot (which is presumably wind speed), and color. What is the third variable?
dpb
dpb 2016 年 6 月 28 日
編集済み: dpb 2016 年 6 月 28 日
The color appears to be actual wind speed, not sure what the radial position is, either, that goes from 0-15 "somethings". But, without it, there'd be just a blob in the middle but can't think what else it might be, either. There's still something funky going on w/ the links that can't download a file as anything but text from this browser which obviously doesn't work for a .xls file so can't look at his data file unfortunately.
Image Analyst
Image Analyst 2016 年 6 月 28 日
Did you right click and select "Save Link As..."?
dpb
dpb 2016 年 6 月 28 日
Yea, I still get an ascii rendition in the saved file...

サインインしてコメントする。

回答 (3 件)

Image Analyst
Image Analyst 2016 年 6 月 28 日

0 投票

How about scatter()? You can input the color of each marker if you want. Or if you want to indicate direction, use quiver().

1 件のコメント

dpb
dpb 2016 年 6 月 28 日
Tough w/ scatter to do the polar coordinates, though...Matlab is very limited when get out of the x-y 2D plotting.
Seems like the solution may be a two-axes plot w/ the data plotted suitably transformed via scatter over a polar axes...but the question asked above of what's actually being plotted is a good one...

サインインしてコメントする。

Muhammad Usman Saleem
Muhammad Usman Saleem 2016 年 6 月 28 日

0 投票

you may try quever plot to show winds speed and direction vector.

質問済み:

2016 年 6 月 27 日

回答済み:

2016 年 6 月 28 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by