Here is an example code that plots the required function using the mentioned functions:
main.m506 chars22 lines
This code will generate a plot that starts from [0,0] and goes to [5,8] using sine function, from there it goes to [10,0] using logarithmic function and finally it moves to [13,-4] using quadratic function. The resulting plot will have all functions shown with different colors and line-types along with the points where the function changes its course.
gistlibby LogSnag