How to clear a particular figure and replace it with other
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Yash Phirke
am 5 Mai 2021
Kommentiert: Yash Phirke
am 6 Mai 2021
So I have got a curve f in green which I want to keep as it is. I have plot a blue circle over it. Now I want to clear this blue circle by keeping the green curve as it is and plot a new red circle over it. How should I do it?
clf
hold on
fplot(f,'g')
xlim([-1,3])
ylim([-2,2])
p1 = plot(0,0,'bo');
clf(p1,'reset')
p2 = plot(0,1,'ro');
0 Kommentare
Akzeptierte Antwort
VBBV
am 5 Mai 2021
Bearbeitet: VBBV
am 6 Mai 2021
%f true
clf
hold all
fplot(f,'g')
xlim([-1,3])
ylim([-2,2])
f1 = figure
plot(0,0,'bo');
clf(f1,'reset')
plot(0,1,'ro');
Reset using figure handles
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Axis Labels 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!