フィルターのクリア

how can i delete a quiver3 object

8 ビュー (過去 30 日間)
Andrea Gusmara
Andrea Gusmara 2020 年 6 月 3 日
コメント済み: Andrea Gusmara 2020 年 6 月 4 日
hi
to everyone I would like to ask you how do I remove these three quiver3 objects from my patch
surf=gca;
xlim(surf,[-30 +30]);
xlabel('x');
zlim(surf,[-30 +30]);
zlabel('z');
ylim(surf,[-30 +30]);
ylabel('y');
%regola in una modalità fissa la lunghezza dela singola unita degli assi
daspect([1 1 1]);
S.Vertices=[];
S.Faces=[];
p=patch(S);
frame0=eye(4);
hold('on');
frame0V=ReferenceSystem(frame0);
function [q1,q2,q3]=ReferenceSystem(frame)
q1 =quiver3(frame(1,4),frame(2,4),frame(3,4),frame(1,1),frame(2,1),frame(3,1), 'Color', 'r');
q1.LineWidth=3;
q1.AutoScaleFactor=8;
q2 = quiver3(frame(1,4),frame(2,4),frame(3,4),frame(1,2),frame(2,2), frame(3,2), 'Color', 'g');
q2.LineWidth=3;
q2.AutoScaleFactor=8;
q3 = quiver3(frame(1,4),frame(2,4),frame(3,4),frame(1,3),frame(2,3), frame(3,3), 'Color', 'b');
q3.LineWidth=3;
q3.AutoScaleFactor=10;
  2 件のコメント
Walter Roberson
Walter Roberson 2020 年 6 月 3 日
delete([q1, q2, q3])
?
Andrea Gusmara
Andrea Gusmara 2020 年 6 月 4 日
unluckily Doesn't work.
Unrecognized function or variable 'q1'.

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

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 6 月 4 日
Call the function with 3 output arguments to get the handle of the quiver objects.
[frame0Vq1,frame0Vq2,frame0Vq3]=ReferenceSystem(frame0);
and then delete it like this
delete([frame0Vq1,frame0Vq2,frame0Vq3])
  1 件のコメント
Andrea Gusmara
Andrea Gusmara 2020 年 6 月 4 日
thank you so much , now works correctly.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by