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