To set the axis length in MATLAB, you can use the axis
function with four input arguments, which represent the minimum and maximum values of the x- and y-axis:
main.m28 chars2 lines
For example, if you want to set the x-axis limit from 0 to 10 and the y-axis limit from 0 to 20, you can use the following code:
main.m60 chars5 lines
This will produce a plot where the x-axis goes from 0 to 10 and the y-axis goes from 0 to 20.
gistlibby LogSnag