MATLAB: How to standard ticks on x-axis MATLABticks I have a 24hr data, how can I force the x-axis to have ticks 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24? Best Answer plot(0:24)set(gca,'xtick',0:24)Look alsodoc xticklabel Related SolutionsMATLAB: How to remove ticks from the x-axis set(gca,'XTick',[]) MATLAB: Remove all NaN values from an array. Use these linesidx = any(isnan(D), 2);E = D(~idx, :); Related QuestionReshape an array into anotherX-axis ticks on heatmap
Best Answer