How to plot x=0 in semilogx plot?
I need to plot a graph using semilogx(x,y) . I have x=[0 1 2 ... 10 15 20 30 50 75 100] . The problem is that MATLAB does not plot x=0 , which I understand because log(0)=undef . So is there another method in MATLAB to spread my points? Because using linear scale squeezes all first points in 1/10th of the graph's width! Usually, what is done in cases like this is adding 1 to all x , so the first value (originally 0 ) appears at the origin, and also the back-transformation is the same for all values. You can add any other small values than 1 , and get a similar result. However, you don't want