I am currently writing on thesis, where I plan to include quite a few function plots. The functions I am talking about are mostly polynomial functions (domain and range are real numbers). However, I also have a few piecewise defined functions I also want to include in the thesis.
My question is, would you rather create the function plots in an external program like matlab and include them as a pdf or jpeg, or would you create the plots within LaTeX? What would be the benefits for me in any of these scenarios? Furthermore, if i chose to create my function plots in LaTeX, what would you use for this purpose?