MATLAB: Is it possible to use yticks only on one side

tick

Is it possible to use yticks only on one side? How to set?

Best Answer

The yticks appear on both sides due to the box being 'on', so to say. Remove them by
box off
This will of course also remove the frame, so here is a bonus hacky solution for retaining the frame
imagesc(rand(100))
box off
ax=gca;
axes('position',ax.Position,'box','on','ytick',[],'xtick',[],'color','none')