matlab - Alter tick labels to a '10^ - style' appearance -


though there quite lot of answered questions kind of issue, wasn’t able find proper solution exact problem. anyway.

i try format tick lables shown in following example:

i found out ‘sprintf’ command offering possibility alter tick format. closest came want 'e-notation' triggered following command:

set(ax,'yticklabel',sprintf('%2.0e|',yticks)) 

however, i’d labels appear shown in example picture. there simple way that?

thank in advance,

joe

am missing something? why not use semilogy?

x = -3:0; y = 10.^x; semilogy(x, y); set(gca, 'yminorgrid', 'on') 

graph


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -