Hi, I have a problem when I have a dataset that is in the range of -10 ^ 3 to 10 ^ 3
I need to be able to build this as a logarithm scale, but semilogy cannot build negative values
Let's say, for example, my data:
x = [-3,-2,-1,0,1,2,3];
y = [-1000,-100,-10,1,10,100,1000];
(or in general y=sign(x).*10.^abs(x);)
How can I build this in MATLAB with a log scale? If possible, it would be great if tick ticks were also on the Y axis.
source
share