pcolor plot with non-linear axis

1 vue (au cours des 30 derniers jours)
Christopher
Christopher le 7 Fév 2014
I have the n*m matrix 'HMB'. I plot this with pcolor right now as:
subplot(1,1,1);
pcolor(HMB);
shading flat;
colormap(hot)
colorbar;
caxis([0, 1])
axis ij image;
xlabel('x');
ylabel('y');
title('Half-Maximum Bounds');
daspect([1 0.2 1])
I want the x dimensions to scale linearly like usual, but I want the y dimension to scale as sqrt(y). This will stretch out the y dimension near y=0 and contract them for high values of y. How can this be done?
Thanks

Réponses (0)

Catégories

En savoir plus sur Lighting, Transparency, and Shading dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by