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 vue (au cours des 30 derniers jours)
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.

Réponses (1)

Dimitris Iliou
Dimitris Iliou le 15 Juin 2017
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.

Community Treasure Hunt

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

Start Hunting!

Translated by