Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Control the visibility of the parts of a piecewise function in plot with pushbutton

1 回表示 (過去 30 日間)
Giorgos Papakonstantinou
Giorgos Papakonstantinou 2013 年 5 月 29 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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.

回答 (1 件)

Giorgos Papakonstantinou
Giorgos Papakonstantinou 2013 年 5 月 30 日
anyone please? ??

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by