MATLAB: Data cursor doesn’t display the values set with xticklabel xtick I do this to change the x axis values but im not sure how to get the Data cursor to display these new values set(gca, 'XTick', [1:24:dt], 'XTickLabel', [tW+1:24:tW+1+dt]); Best Answer That command changes only the values labeling the axes. It does not change the data themselves. The data cursor shows the value of the data themselves. Related SolutionsMATLAB: How to display only grid on axes (without values) plot(rand(1,20))yticklabels([])grid on MATLAB: How to write a fraction on xticklabel xticklabels({'$-\pi$','$\frac{-\pi}{2}$','$-\pi/3$','$-\pi/4$','$-\pi/6$','$0$','$\pi/6$','$\pi/4$','$\pi/3$','$\pi/2$','$\pi$'});set(gca,'TickLabelInterpreter', 'latex')You will probably want to convert the rest to \frac for consistency. Related QuestionHow to change the x-axis label on a SEMILOGX plot from exponential to normal format in MATLABXTickLabelRemoving Xaxis and Yaxis valuesData CursorDeletting X and Y axes ticks
Best Answer