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 次查看(过去 30 天)
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 个评论
dpb
dpb 2018-4-24
编辑:dpb 2018-4-24

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 2018-4-24
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

请先登录,再进行评论。

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by