How to change color bar limits in imagesc?
    51 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Zeynab Mousavikhamene
      
 am 7 Jul. 2020
  
    
    
    
    
    Kommentiert: Zeynab Mousavikhamene
      
 am 8 Jul. 2020
            For heatmap, thisc command would work:
'ColorLimits',[50 100]
but it did not work for imagesc.
0 Kommentare
Akzeptierte Antwort
  Akira Agata
    
      
 am 8 Jul. 2020
        You can do that task by setting CLim of the axes, like:
figure
imagesc(rand(4));
ax = gca;
ax.CLim = [0 1];
colorbar
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

