clear single plots intead of the whole plot
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi! I'm doing a plot consisting of a "chart" and some dots coming up on it with 10 sec inteval is it possible to only erase the dots and keep the chart? right now I'm using the clf function but it clears the whole window. Johan
0 Kommentare
Akzeptierte Antwort
Arturo Moncada-Torres
am 16 Jun. 2011
Yes, it is possible thanks to the handles. For example, try something like this:
x = 1:1 0;
figure();
plotHandles = plot(x, '.');
delete(plotHandles); % Clear the points defined by the handle.
Give it a try!
0 Kommentare
Weitere Antworten (2)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!