How do I convert a linear scale array to a logarithmic without getting negative values?

6 次查看(过去 30 天)
Hi All
I need to plot ( bar plot) values, and on the X axis , I want to convert them to logarithmic, but the values <1 become negative. how to avoid and fix it ?

回答(1 个)

madhan ravi
madhan ravi 2020-7-6
Replace < 1 with nan.
  14 个评论

请先登录,再进行评论。

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by