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