How can I draw hysteresis loop using matlab

27 ビュー (過去 30 日間)
Ede gerlderlands
Ede gerlderlands 2013 年 2 月 13 日
I have velocity ,v, and discharge, q, vectors . I want to draw hysteresis plot between the two. I used plot_dir function but it can't allow me to have the plot with good view and resolution. Is there any way of plotting it?
I used this function but failed
plot_dir(v,q)
Thanks for your help.
Any function that give that shows the beginning and end of successive points with arrow is acceptable. Thanks again.

採用された回答

José-Luis
José-Luis 2013 年 2 月 13 日
編集済み: José-Luis 2013 年 2 月 13 日
x = rand(10,1);
y = rand(10,1);
quiver(x(1:end-1),y(1:end-1),diff(x),diff(y),0);
Please accept an answer if it helps you.
  5 件のコメント
Sean de Wolski
Sean de Wolski 2013 年 2 月 13 日
Nice!
Ede gerlderlands
Ede gerlderlands 2013 年 2 月 13 日
編集済み: Ede gerlderlands 2013 年 2 月 13 日
Thanks all, You answered my questions . the arrow direction is not really distinguishable is there any way of improving it? it looks straight line rather than arrow...tnx

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

その他の回答 (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