필터 지우기
필터 지우기

Remove data in figure after plot

조회 수: 41 (최근 30일)
Gabriele Curcio
Gabriele Curcio 2023년 6월 8일
댓글: Dyuman Joshi 2023년 6월 9일
I have the following situation, and I would like to select only some of that curves. Is there a manner?
  댓글 수: 3
Gabriele Curcio
Gabriele Curcio 2023년 6월 8일
But I can make the curves invisible inside the "Figure" window?
Dyuman Joshi
Dyuman Joshi 2023년 6월 9일
What exactly do you mean by that?

댓글을 달려면 로그인하십시오.

채택된 답변

the cyclist
the cyclist 2023년 6월 8일
Similar to @Dyuman Joshi's answer, you can make the line "invisible", rather than deleting:
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
Gabriele Curcio
Gabriele Curcio 2023년 6월 8일
But I can make the curves invisible inside the "Figure" window?
the cyclist
the cyclist 2023년 6월 8일
편집: the cyclist 2023년 6월 8일
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")

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by