Filter löschen
Filter löschen

changing Ticklabel in colorbar

1 Ansicht (letzte 30 Tage)
saima
saima am 18 Aug. 2013
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

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 18 Aug. 2013
set(gca,'xtick',[0 5 10])

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by