Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
$\begingroup$@sarakaviani: The code in the linked Q&A works for me. You did enter and execute the definition of the PlotPiecewise function didn't you ?$\endgroup$
PlotPiecewise
function didn't you ? $\endgroup$