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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -