While making a plot using the plot command on MATLAB, we supply two arguments to the function plot(x,y). The labels displayed on the axis of the plot are precisely those values that are stored in x and y arrays. In order to change those, change the value in the x and y arrays.
Note- The size of x and y should be the same. There is a mapping between the indices of the two arrays which then gets plotted.