Effacer les filtres
Effacer les filtres

風速、風向の値から一つの矢印にしたいです。

9 vues (au cours des 30 derniers jours)
Ken Hayakawa
Ken Hayakawa le 25 Jan 2019
Réponse apportée : Kazuya le 28 Jan 2019
下のように風速と風向をプロットしているのですが
subplot(211); hold on; grid on; box on;
plot((timen-timeorig)*24,winsp);
subplot(211); hold on; grid on; box on;
plot((timen-timeorig)*24,windir);
風速と風向を一つの矢印にして長さと角度のパラメータで表したいと思うのですが、
風向(windir)は角度(degree)の値であるため、
quiverの使い方がわかりません。

Réponses (1)

Kazuya
Kazuya le 28 Jan 2019
quiver 関数を使う場合は、、風速・風向きをベクトルに変換すればOKかと思いますが、どうでしょう?
qx = huusoku*cos(windir);
qy = huusoku*sin(windir);
とかなんとか。

Community Treasure Hunt

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

Start Hunting!