define depth axis time axis for quiver matlab, depth wise current vectors time series,

4 ビュー (過去 30 日間)
HI all
I am having 21 columns, 1st column as time, 2nd column to last column different depths (10m to 105m with 5m interval).
Now I want to plot current vectors as follows.
Any help will be appreciated.
thank you in advance..

採用された回答

Mischa Kim
Mischa Kim 2014 年 3 月 13 日
Phanindra, use a quiver plot:
t = 0:10;
d = 0:10;
[T,D] = meshgrid(t,d); % create grid out of x- and y-vectors
Vt = sin(T).*sin(D); % data vector: x-component
Vd = cos(T).^2; % data vector: y-component
quiver(T,D,Vt,Vd)
xlabel('time')
ylabel('depth')
  2 件のコメント
reddy
reddy 2014 年 3 月 13 日
excellent answer Mr.Kim,
Thank you so much..
till this day I was very confused with the meshgrid and quiver command you made it very very easy.. thank you..
Ihsan Trisarjono
Ihsan Trisarjono 2018 年 4 月 8 日
編集済み: Ihsan Trisarjono 2018 年 4 月 8 日
Hello Mr. Kim,
Once I tried to use your example of quiver plot, it gave me this result: (image attached)
What should I do to generate an exact quiver plot as questioned (with time series on x-axis, several layers of depth on y-axis, and vectors on certain layers of depth)?
Furthermore, if the data is loaded from a text file which consist of: - column 1: time (dd/mm HH:MM) - column 2: depth - column 3: vector u - column 4: vector v
Thank you

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by