MATLAB: Both text and numbers in axis plotticks I'm wondering if matlab is able to customize the axis where some of the ticks are strings and some of the ticks are number? or inconsistent tick marks (for example, tick marks 1-5 in 1 tick intervals, then 5-100 in intervals of 5? Best Answer set(gca, 'XTick', [1 2 3 4 5 10 15])set(gca,'XTickLabel',{1 2 3 4 'Hello' 10 15}) Related SolutionsMATLAB: Change the axis tick set(gca,'xtick',1:1:10)replace 10 with your larger value MATLAB: How to not display abscissa ticks using command while keeping the ticks of y-axis set(gca,'XTick',[]); Related QuestionDeletting X and Y axes ticksHow to remove the tic labels but not the marksDo I not get any YTick marks on the semilogy PLOTYY axis in MATLAB 7.5 (R2007b)Set x-axis intervalSeting ticks on axis
Best Answer