MATLAB: What is the equation for this graph

equationgraph

Eq

Best Answer

I give you the first section and you extend it along the x-axis
x = 0:0.001:0.04;
y = (800.*x-4).*(x>=0 & x<0.01) + 4.*(x>=0.01 & x<0.02) + (-400.*x+12).*(x>=0.02 & x<=0.04);
plot(x,y)
grid on
axis([0 0.04 -6 6])
Related Question