How to make a log plot with a graph?

1 vue (au cours des 30 derniers jours)
Ashley
Ashley le 26 Juin 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))

Réponse acceptée

Kelly Kearney
Kelly Kearney le 26 Juin 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 commentaire
Ashley
Ashley le 26 Juin 2013
thank you, that's worked exactly how i wanted it to :)

Connectez-vous pour commenter.

Plus de réponses (1)

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

Connectez-vous pour commenter.

Catégories

En savoir plus sur 2-D and 3-D Plots 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