MATLAB: How to write superscripts for x-axis in a boxplot superscripts for x-axis I have h=boxplot(x, g, 'notch','off','label', {'89_{p}','10007_{p}','3067_{M}'}); how to write p as a superscripts for x-axis Best Answer set(gca,'TickLabelInterpreter','tex') Related SolutionsMATLAB: Adding Superscript to a string Try experimenting withstr = [str, num2str(p(i)), 'X\textsuperscript{', num2str(length(p) -i), '} + ']; MATLAB: Boxplot – Size of the Labels set(findobj(gca,'Type','text'),'VerticalAlignment','top') Related QuestionX-axis error when adjusting axis labelSuperscript/subscript in ‘insertText’ string
Best Answer