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 view (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Dimitris Iliou
on 15 Jun 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.
0 Comments
See Also
Categories
Find more on Bar Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!