% takes a function handle as an input, and plots it function f=plotter_function(function_to_plot) xlist=-2:.01:2; ylist=function_to_plot(xlist) ; figure plot(xlist,ylist)