How to make a log plot with a graph?

조회 수: 1 (최근 30일)
Ashley
Ashley 2013년 6월 26일
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))

채택된 답변

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

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by