clc
clear
disp('Zhoria Renfus')
x1 = 0:0.01:4;
x2 = 4:0.01:8;
x3 = 8:0.01:12;
y1 = 4 * (x1)
y2 = 1 * (x2)
y3 = -2 * (x3)
title('Plot of a Function');
xlabel('x');
ylabel('f(x)')
To embed this project on your website, copy the following code and paste it into your website's HTML: