how to write superscripts for x-axis in a boxplot

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

 採用された回答

Adam Danz
Adam Danz 2020 年 1 月 6 日

1 投票

set(gca,'TickLabelInterpreter','tex')

その他の回答 (1 件)

Max Murphy
Max Murphy 2020 年 1 月 6 日

0 投票

% h=boxplot(x, g, 'notch','off','label', {'89_{p}','10007_{p}','3067_{M}'});
% You were using subscript operator (_)
h=boxplot(x, g, 'notch','off','label', {'89^{p}','10007^{p}','3067^{M}'});

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

質問済み:

NA
2020 年 1 月 6 日

回答済み:

2020 年 1 月 6 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by