Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Control the visibility of the parts of a piecewise function in plot with pushbutton
조회 수: 1 (최근 30일)
이전 댓글 표시
Hallo,
I have a piecewise function such:
x=0:1:10;
s1=(x>=0 & x<=5);
s2=(x>5 & x<=10);
y(s1)=2.*x(s1)+5;
y(s2)=-2.*x(s2)+25;
plot(x,y)
and I need to control the visibility of its two parts. If I push the button a part disappears. If I push it back appears. How can I do that?
Thank you.
댓글 수: 0
답변 (1개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!