MATLAB: Moving box

moving boxodetraveling wave

I am solving a 2nd non-linear ode and finally plotting the answer for different times,but since my boundary limits are limited some of my answers would be out of view,I want to change my limits for each of them so that,they would be centered all in one graph. thanks,

Best Answer

xlim()
ylim()
axis()