How to plot a line where the variable changes condition.

Illustration
smith_anard - 2020-09-07T10:56:19+00:00
Question: How to plot a line where the variable changes condition.

So from 0

Expert Answer

Profile picture of John Williams John Williams answered . 2025-11-20

   Z=@(x) 1.25*((0.72*(x/5))-((x/5).^2)).*(x>0 & x<1.8)+...
           (1125/1024)*((0.28+(0.72*(x/5)))-((x/5).^2)).*(x>1.8 & x<5);


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!