How to make a log plot with a graph?

1 visualización (últimos 30 días)
Ashley
Ashley el 26 de Jun. de 2013
Hi I am trying to make a graph so that it becomes log scale. This is the graph i am trying to do this with:
I am trying to get this graph so that those lines at the bottom become more spaced out, and the dots around the place at the top become more grouped together, so that overall , the graph is much easier to interpret by humans.
At the moment , I am just looking for a way to manipulate the function itself (i.e. f(x)), so that it looks like i've done a log plot when really I haven't, since in Matlab, there doesn't seem to be much of a way to do this with the "imagesc" function (if anyone is good with matlab and knows how to do a log plot with this function, please tell!)
I've been working on this for a long time, is anyone out there able to enlighten me?
Kind regards, Ashley
[product version: 8.1.0.604 (R2013a))

Respuesta aceptada

Kelly Kearney
Kelly Kearney el 26 de Jun. de 2013
Would you be able to switch to using pcolor instead of imagesc? In that case, you could set the 'Yscale' as suggested by Sean (and actually see a change). I'm not an image processing person myself, so there may be other advantages to using image and imagesc over pcolor, but I usually find the latter to be more useful when dealing with skewed coordinate systems of any sort.
  1 comentario
Ashley
Ashley el 26 de Jun. de 2013
thank you, that's worked exactly how i wanted it to :)

Iniciar sesión para comentar.

Más respuestas (1)

Sean de Wolski
Sean de Wolski el 26 de Jun. de 2013
imagesc(magic(1000));
set(gca,'XScale','log');
You can set the 'YScale' to log as well if you need to.
  2 comentarios
Ashley
Ashley el 26 de Jun. de 2013
thanks for advice
this only relabels axis, it doesn't actually do any rearranging of the image itself
Ashley
Ashley el 26 de Jun. de 2013
this is the kind of thing i'm looking for: http://en.wikipedia.org/wiki/Logarithmic_scale

Iniciar sesión para comentar.

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by