undo a command in matlab plotting in 2d

1 Ansicht (letzte 30 Tage)
Aized
Aized am 10 Sep. 2024
Beantwortet: Voss am 10 Sep. 2024
I have a plot in 2d with 3 waves in it now i want to remove one the wave from the plot , how can i do it without restarting from the start

Antworten (2)

ScottB
ScottB am 10 Sep. 2024
x = 1:10;
y = x.^2;
b = x.^3;
h1 = plot(y);
hold on
h2 =plot(b);
pause(3)
set(h1, 'visible','off')

Voss
Voss am 10 Sep. 2024
In the figure window go to Tools menu > Edit Plot. Using the mouse cursor select the line you want to remove, then either right-click and select Delete or hit the delete key.

Kategorien

Mehr zu 2-D and 3-D Plots 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!

Translated by