how can i delete a quiver3 object
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Andrea Gusmara
am 3 Jun. 2020
Kommentiert: Andrea Gusmara
am 4 Jun. 2020
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 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 4 Jun. 2020
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])
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Lighting, Transparency, and Shading finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!