MATLAB: How to change the scale of plot axes

graph scale plot

Hello everyone. I'm stuck with this problem: I have two plots (the first one is 2D and the second one is 3D) and I want to visualize the second one with the same values on its axes than the first one. i am trying to change the scale but i lose some points, it is as i am cutting away some points. i just want the x-values of my second plot to be the same as the one.. thank you to anybody will answer me.

Best Answer

Use the get and set functions to get the axis tick values from the 2D plot and then set them on your 3D plot. I can’t write specific code to do this because I don’t have enough information about your plots.