How to plot a piecewise function? - MATLAB Answers - MathWorks
https://www.mathworks.com/matlabcentral/answers/317651-how-to-plot-a-piecewise-function
WEBDec 20, 2016 · Vote. 0. Link. If you only want to plot the function, do this: Theme. Copy. x1 = linspace (-5,0,50); y1 = 10*ones (1,50); x2 = linspace (0,9,90); y2 = 10*x2+10; x3 = linspace (9,30,210); y3 = 15*sqrt (4*x3)+10;
DA: 56 PA: 34 MOZ Rank: 47