I am trying to set the major grid lines to have a dashed linestyle, and the minor gridlines to have a solid linestyle:
figure;plot(1:10)grid onset(gca, 'xminorgrid', 'on')set(gca,'MinorGridLineStyle','-')set(gca,'GridLineStyle','--')
However, the resulting major grid lines for the x-axis are solid and not dotted as I intended.
Best Answer