clc
clear

x1=0:0.1:5;
x2=5:0.1:10;
x3=10:0.1:15;

y1=3
y2=0
y3=-3

plot(x1,x2,x3,y1,y2,y3)

Embed on website

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