How do you write infinity in Matlab?
MATLAB® represents infinity by the special value Inf .
How do you repeat a plot in Matlab?
If you use 'hold on', you should then be able to plot on the same figure, then simply use the 'hold off' function when you're done plotting on the same graph.