フィルターのクリア

how to replace labels 1e-18, 1e-17, 1e-16 etc. to 10^(-18), 10^(-17), 10^(-16) etc.

6 ビュー (過去 30 日間)
Megha
Megha 2019 年 10 月 1 日
回答済み: Jyotsna Talluri 2019 年 10 月 9 日
how to replace labels 1e-18, 1e-17, 1e-16 etc. to 10^(-18), 10^(-17), 10^(-16) etc.how to replace labels 1e-18, 1e-17, 1e-16 etc. to 10^(-18), 10^(-17), 10^(-16) etc.
I have used
yt = logspace(-18,9,10); % but it gives my ticklabel in 1e-18, 1e-17, 1e-16 etc.
hand = colorbar('peer',gca,'Position',[0.9 0.439765458422175 0.0147083333333334 0.435863539445629],...
'Ticks',(-18:2:-9),'TickLabels',yt(1:2:end),'FontSize',14);
Writing it manually is tiersome for long list of numbers.
Any suggestions?
Thanks in advance!

回答 (1 件)

Jyotsna Talluri
Jyotsna Talluri 2019 年 10 月 9 日

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by