Remove data in figure after plot
57 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gabriele Curcio
am 8 Jun. 2023
Kommentiert: Dyuman Joshi
am 9 Jun. 2023
I have the following situation, and I would like to select only some of that curves. Is there a manner?

3 Kommentare
Akzeptierte Antwort
the cyclist
am 8 Jun. 2023
x = 0:0.01:10;
%5 curves
y1 = 10*sin(x);
y2 = 10*cos(x);
y3 = 0*x+10;
y4 = x.^2;
y5 = 10*(sin(x)-cos(x));
%plotting the curves
figure
h = plot(x,y1,x,y2,x,y3,x,y4,x,y5);
% Turn off the visibility of the first curve
set(h(1),"Visible","off")
2 Kommentare
the cyclist
am 8 Jun. 2023
Bearbeitet: the cyclist
am 8 Jun. 2023
I'm confused. Here, I'm making all the curves invisible.
x = 0:0.01:10;
%5 curves
y1 = 10*sin(x);
y2 = 10*cos(x);
y3 = 0*x+10;
y4 = x.^2;
y5 = 10*(sin(x)-cos(x));
%plotting the curves
figure
h = plot(x,y1,x,y2,x,y3,x,y4,x,y5);
% Turn off the visibility of all curves
set(h,"Visible","off")
Weitere Antworten (0)
Siehe auch
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!


