MATLAB: Write on xaxis of graph graph i wrote the below code for plotting a time graph… in the xtick label i want the 2 points to be named as PCA and LDA…. when i do as below i'm not getting it correctly… Best Answer Elysi, not quite sure, what you need to do, but this does the trick: set(gca,'XTickLabel',{'PCA', 'LDA'},'XTick',[1 2]); Related SolutionsMATLAB: GUI graph with strings as axis Here's a demoax = axes(); %Instead of this line, use the axis handle from your GUI handlesxTickVals = [2,4,6]; %<-- where you want the ticksxlim([1,7]) %<-- make sure the ticks are within rangexTickLables = {'RO', 'BG', 'TR'}; %<-- your tick labelsset(ax, 'XTick', xTickVals, 'XTickLabels', xTickLables) % <-- set the ticks & labels MATLAB: Deletting X and Y axes ticks set(gca,'xtick',[]) set(gca,'ytick',[]) Related QuestionX-axis definitionCould anyone help me to plot the graph.X-axis valueHow to write superscripts for x-axis in a boxplot
Best Answer