Plot multile quiver on matlab

29 ビュー (過去 30 日間)
Hidir ABAY
Hidir ABAY 2016 年 5 月 31 日
回答済み: Binh Nguyen 2019 年 4 月 12 日
Hello every one, today I need your help because I want to plot two different velocity in a grayscale image, with the particles position. So first I show the image, then I plot the particles, then I plot the first quiver (numerical velocity) and then the second quiver (original velocity) to compare them. But When I do it, matlab shows me only the second quiver. It delete the first quiver. I tried with only the first quiver, and it works. So the probleme is with my lines.. Let me show you this :
figure(1)
imshow(image1)
hold on
plot(i,j,'rx');
hold on
quiver(X,Y,u_detected,v_detected,'g')
hold on
quiver(X,Y,u_originale,v_originale,'y')
hold off
I hope you could help me. Thank you.

回答 (2 件)

Pallabi Sengupta
Pallabi Sengupta 2016 年 5 月 31 日
I had similar problem. What I did was to put the same reference points which doesn't have any 'velocity' element and plotted two subplots. It is not the same thing, but does the job.
  1 件のコメント
Hidir ABAY
Hidir ABAY 2016 年 6 月 1 日
Thank you for your answer.

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


Binh Nguyen
Binh Nguyen 2019 年 4 月 12 日
I know this is old, but you could do something like
hold on;
q(1) = quiver(X,Y,u_detected,v_detected,'g');
q(2) = quiver(X,Y,u_originale,v_originale,'y')
hold off;
where you place each quiver object into a separate variable (or as part of a quiver array, in this case).

カテゴリ

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