How to put degree symbol in x-axis

7 ビュー (過去 30 日間)
Tj R
Tj R 2013 年 4 月 8 日
コメント済み: Chad Greene 2015 年 5 月 8 日
Dear Experts,
Thanks for your answer in advance! When i draw a x,y plot, in x-axis values says the temperature in degrees. I want to put a degree symbol for each value in x-axis in a plot. How put this degree for each value in the x-axis. Please help me in this regard.
Thank you Raj.

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 4 月 8 日
xt=get(gca,'xtick');
for k=1:numel(xt);
xt1{k}=sprintf('%d°',xt(k));
end
set(gca,'xticklabel',xt1);
  5 件のコメント
Tj R
Tj R 2013 年 4 月 17 日
Hi Azzi and Tobias, Please have a look at my new question! Please help me in this regard.
Chad Greene
Chad Greene 2015 年 5 月 8 日
I implemented Azzi's solution in a function called degreetick.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by