undo a command in matlab plotting in 2d

5 ビュー (過去 30 日間)
Aized
Aized 2024 年 9 月 10 日
回答済み: Voss 2024 年 9 月 10 日
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

回答 (2 件)

ScottB
ScottB 2024 年 9 月 10 日
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 2024 年 9 月 10 日
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.

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by