From: Francesca Turco on 9 Jun 2010 18:09 Hi, I have a 2D matrix M with values that range from 1e-8 to 1e0, when I plot it with >contourf(M) the colorbar only goes from 1 to 1.32 and of course the plot does not how the data at all. This happens also with contour. Does anyone know why? Thanks, Francesca
From: TideMan on 9 Jun 2010 22:43 On Jun 10, 2:09 pm, Francesca Turco <frances.tu...(a)gmail.com> wrote: > Hi, > I have a 2D matrix M with values that range from 1e-8 to 1e0, when I plot it with >contourf(M) the colorbar only goes from 1 to 1.32 and of course the plot does not how the data at all. This happens also with contour. > Does anyone know why? > Thanks, > Francesca Oh, come on!!! Think about it. How can poor old contour distinguish between 1e-8 and zero? Try plotting a profile through the data using plot, say plot(M(:,10)). What do you see? If you want to distinguish between 1e-8 and 1e-7 for example, you'll need to use log10(M).
|
Pages: 1 Prev: xlswrite - assessing sheet name Next: Reading .mat filenames into a listbox |