How can I create image from 2d matrix?

1 次查看(过去 30 天)
Milenko
Milenko 2012-7-13
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?

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Colormaps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by