how can i delete a quiver3 object

8 次查看(过去 30 天)
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;

采纳的回答

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])

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by