I plotted a graph from data I got from simulations, however the challenge I am having is that some data points are on the Y and X axis. I have tried using Log & semilogx but its giving me -ve values. I need +ve values. How can I resolve this pls?

조회 수: 1 (최근 30일)
I plotted a graph from data I got from simulations, however the challenge I am having is that some data points are on the Y and X axis. I have tried using Log scale & semilogx but its giving me -ve values. I am working on flow rates hence I need to have positive values for flow rates not negative.

답변 (1개)

Dimitris Iliou
Dimitris Iliou 2017년 6월 15일
Since you have data that I am assuming are expressed geometrically, you might have to use a logarithmic scale.
A negative value on the logarithmic scale does not mean that the value is negative.
For example,
log(0.001)
ans =
-6.9078
Since you mentioned that you have data on (or close to) the X,Y axis, I think it is natural to encounter negative numbers since you would have to use a logarithmic scale.

카테고리

Help CenterFile Exchange에서 Bar Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by