clc
clear
disp('Zhoria Renfus')
N=100;
x=linspace(-2,6,N)
for k= 1:N
if x(k) < -1
y(k)= exp(x(k)+1)
elseif x(k)>= -1 & x(k)<= 5
y(k)= 2+ cos(pi*x(k));
else
y(k)= 10*(x(k)-5)+1;
endif
end
ploy(x,y)
To embed this project on your website, copy the following code and paste it into your website's HTML: