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 Center および File ExchangeLog Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by