Use semilogx to scale X axis logarithmically or for usual plot change its property
set(gca, 'XScale', 'log');
Change ticks and grid line spacing
set(gca, 'YTick', vectorOfYvalues);
set(gca, 'YGrid', vectorOfYvalues);
More on axes properties in documentation.