フィルターのクリア

changing Ticklabel in colorbar

1 回表示 (過去 30 日間)
saima
saima 2013 年 8 月 18 日
Hi,
I have plotted an image with colorbar.
imagesc(pfield,[0 10]);
h=colorbar
How can I change the ticklabels in the colorbar using set() command? I need only [0 5 10]
-saima

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 8 月 18 日
set(gca,'xtick',[0 5 10])

カテゴリ

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