Borrar filtros
Borrar filtros

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?

3 visualizaciones (últimos 30 días)
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.

Respuestas (1)

Dimitris Iliou
Dimitris Iliou el 15 de Jun. de 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.

Categorías

Más información sobre Log Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by