Why does MATLAB can't plot two function 'quiver' in one graph??

5 ビュー (過去 30 日間)
sven_sight
sven_sight 2012 年 9 月 2 日
I'm using two 'quiver' function but MATLAB only plot one function.
h4=axes('position', [0.1 .55 width height],'box', 'on', 'xcolor', 'k','ycolor',...
'k');
set(gcf,'color', 'w')
axis equal;
quiver(Px,Py,a44,a44);
quiver(Px,Py,w22,w22);
axis([xmin xmax ymin ymax]);
Thx,,

採用された回答

Walter Roberson
Walter Roberson 2012 年 9 月 2 日
Add the statement
hold on
before the second call to quiver()
quiver() is considered a high-level plotting function, as are all plotting functions other than line(), surface(), patch(), text(), figure() and axis(). The high-level plotting functions automatically clear the existing graphics unless "hold on" or "hold all" (or the internal equivalents) are in effect. This is not specific to quiver().

その他の回答 (1 件)

sven_sight
sven_sight 2012 年 9 月 3 日
Thx walter,,

カテゴリ

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