MATLAB: How to change the x-axis limit of recovered signal so that it becomes equal to x axis limit of input sampled sequence?following plots are as follows

scaling of x-axis

Best Answer

By default, the axis gets padded out to get nice round numbers for the ticks and make sure there are ticks at the ends. The command
axis tight
will get rid of the padding on both the X & Y axes. If you just want the X to be tight, then the following trick should work:
xlim([-inf inf])