필터 지우기
필터 지우기

In plotting Y(x)=10^x, for x=0:5 matlab gives y-axis tick labels as 0 1 2 3 4 and last as 5 x 10^5. How can I get all tick labels as 10^x?

조회 수: 2 (최근 30일)
I want the y-axis labels as 10^x for inclusion of plots in documents. I can not find the procedure for this in the matlab manual. Can you help?

답변 (2개)

Azzi Abdelmalek
Azzi Abdelmalek 2012년 12월 1일
set(gca,'yscale','log')

Matt Fig
Matt Fig 2012년 12월 1일
편집: Matt Fig 2012년 12월 1일
You could use the MATLAB logarithmic plotting routines:
x = 0:5;
semilogy(x,10.^x) % Also, see SEMILOGX, LOLOG

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by