Removing minor ticks in x-axis of semilogx plot in matlab
<p>Here is an example of code</p>

<pre><code>x = 0:1000;
y = log(x);
semilogx(x,y)
</code></pre>

<p><img src="https://www.mathworks.com/help/examples/graphics/LogarithmicScaleForXAxisExample_01.png" alt="semilogx picture"></p>

<p>I want to remove the small tick marks between 10^0 and 10^1 on the x-axis.</p>

<p>I tried:</p>

<pre><code>set(gca,'XminorTick','off')
</code></pre>

<p>but it didn't work</p>