How can I create image from 2d matrix?

2 vues (au cours des 30 derniers jours)
Milenko
Milenko le 13 Juil 2012
i have 2d matrix with velocities in the range 4900-5100.I have problem with colormap.
function x=f(nd)
x=load('nd.dat') y=transpose(x) image(y) colorbar
Any suggestions regarding the range?

Réponses (1)

Kye Taylor
Kye Taylor le 13 Juil 2012
As a first attempt, try replacing
image
with
imagesc
which scales the colormap to the range of values in the matrix.

Catégories

En savoir plus sur Color and Styling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by