I am plotting a vector(x) as log(x). When I plot I see log of the x values are shown in y axis. But I need original values in y axis. Is thre anyway to do it?. In ansys FRF plots are logs but the y axis will be in meters scale in deformation FRF

1 view (last 30 days)
In this image you can see Y axis is in log scale. But i want these to be in linear meter scale. Any advise would be a great help
  2 Comments
dpb
dpb on 24 Apr 2018
Edited: dpb on 24 Apr 2018

Show code, don't just tell us.

If you did

plot(f,log(x))

as it appears you must have done, then the scale is linear not log but the values are, indeed log(x) and hence, not in m (presuming that is units of x)

To show the actual dimensions on the axis that went with the data you'd have to evaluate the actual magnitude of x at each ytick value and label yticklabel with that value. Those values will then be logarithmically distributed, of course.

What would help would be to attach a figure that shows what it is you would like to achieve and a small .mat file that has some data to play with instead of having to make it up.

Pradeep Reddy
Pradeep Reddy on 24 Apr 2018
Hi, Thank you so much for you valuable time. What you have said above is correct. I was able to fix it using ytick and yticklabel.
Thanks again for you advise

Sign in to comment.

Answers (1)

Jon
Jon on 24 Apr 2018
I think that semilogy(x,y) does just what you want

Tags

Community Treasure Hunt

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

Start Hunting!