clc
clear
disp("ck")

x1=0:0.1:2;
y1=10*ones(size(x1));
x2=2:0.1:5;
y2=zeros(size(x2));
x3=5:0.1:7;
y3=-3*ones(size(x3));

x=[x1, x2, x3];
y=[y1, y2, y3];
plot(x,y)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: