フィルターのクリア

Plotting wind direction and speed over time

14 ビュー (過去 30 日間)
Lindazeta
Lindazeta 2020 年 6 月 15 日
コメント済み: Stefan Weichert 2022 年 11 月 16 日
Hi,
I need to plot wind speed and directon over time, with data over two weeks (data is attached). I would like to have the time on the x-axis and wind on the y-axis, but I don't know how to go about it. I've read a bit about quiver but not sure how to use it, it hasn't worked for me so far..
Any help is appreciated!

回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 6 月 15 日
編集済み: Ameer Hamza 2020 年 6 月 15 日
This plot direction value vs date
T = readtable('smhi-wind-data.csv');
plot(T.Date, T.Direction)
To use quiver, you need 4 vectors (x-coordinates, y-coordinates, x-velocity, and y-velocity). Or at least two vectors (x-velocity and y-velocity), the x and y-coordinate are just chosen to be integers.
.
  5 件のコメント
buschman
buschman 2022 年 2 月 10 日
hints to that solution would help me aswell!
Stefan Weichert
Stefan Weichert 2022 年 11 月 16 日
Quiver should have something that disables the link between vectors and the coordinate system. in Python the vectors are unlinked by default, and you have to make them scale with x and y explicitly. In Matlab I cannot find an option to do or undo that. I would very much like a solution to this too!

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

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by