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

조회 수: 8 (최근 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