MATLAB: How to make both graphs x and y axis identical

graph

Here in graph x axis is 200,400,600 and y axis has been ranging from 0 to 3 while other graph x axis is like 20,40,60.. and y axis range is ranging from 0 to 8.How to make both axis equal?Please help me?

Best Answer

Currently you have something like
stairs(received_data)
Change that to
num_sent = length(original_data);
lie_about_the_time = linspace(1, length(recieved_data), num_sent);
stairs(lie_about_the_time, received_data)
Related Question