graph - How to keep gridlines on but turn ytick off in MATLAB -


i trying put grid lines on plot turn off numbered markers on axis.

i first turn on grid lines using:

grid on; 

however when rid of markers using

set(gca,'ytick',[]); % rid of markers 

the y grid turns off! how stay?

i don't know if there more elegant solution set tick labels empty strings.

 set(gca, 'yticklabel', []) 

this way tick marks still there.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -