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 日間)
Pradeep Reddy
Pradeep Reddy 2018 年 4 月 24 日
回答済み: Jon 2018 年 4 月 24 日
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 Center および File ExchangeAxis Labels についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by