The issue you are experiencing occurs when the tick values on the x and y axes do not match their labels. To fix this, you can manually set the ticks and their labels for both axes of the graph. You can do this by adding the following lines of code before calling the plot function:
app.SpeedPlot.XTick = 0:10; % x ticks will be integers from 0 to 10
app.SpeedPlot.XTickLabel = string(0:10); % set the x tick labels as strings of integers from 0 to 10
app.SpeedPlot.YTick = 0:10; % y ticks will be integers from 0 to 10
app.SpeedPlot.YTickLabel = string(0:10); % set the y tick labels as strings of integers from 0 to 10
These lines set the ticks on the x and y axes to integers from 0 to 10. You can adjust these values according to your requirements.
For more information about specifying axis tick values and labels, you can refer to the official MathWorks documentation at the following link: https://www.mathworks.com/help/matlab/creating_plots/change-tick-marks-and-tick-labels-of-graph-1.html.
I hope this helps!