function plotter(inpt) % This is an all purpose plotting program, % it accepts the y-axis as its input, and depending on the size of the y-axis, sets up the x-axis values. % and then generates the plot. Do you see the fault of this function? There arent any checks etc to effectively % set the title and axes depending on the input. dim = max(size(inpt)) xax = [1:dim] plot(xax,inpt) % function ends