Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

adding a undo button to Spline Drawing Tool (spltool)

1 Ansicht (letzte 30 Tage)
32sthide
32sthide am 9 Jan. 2013
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Has anyone here ever used the spline drawing tool in file exchange?
I've tried something like this, I found online,
function undo_plot(h, n)
% UNDO_PLOT Undo last 'n' plotting operations.
if nargin == 1
n = 1;
end
if n < 1
error('Can''t undo < 1 plotting operation!');
end
figure(h);
children = get(gca, 'children');
for i = 1 : n
delete(children(i));
end

Antworten (0)

Diese Frage ist geschlossen.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by