semilogy function, and ylabel number
조회 수: 1 (최근 30일)
이전 댓글 표시
I am using the function semilogy and I get a graphic with numbers 10^1 10^2... http://img829.imageshack.us/img829/9923/grafikas.jpg I need to graph with the normal numbers For example not 10^2 but that be 100
댓글 수: 0
채택된 답변
Walter Roberson
2011년 5월 16일
Correcting and optimizing Paulo's answer:
x=0:0.1:10;
s=semilogy(x,10.^x);
set(gca,'YTickLabel',num2str(get(gca,'YTick').'));
댓글 수: 0
추가 답변 (2개)
Paulo Silva
2011년 5월 16일
x=0:0.1:1000;
s=semilogy(x,10.^x);
YTL=get(gca,'YTickLabel');
set(gca,'YTickMode','manual');
set(gca,'YTickLabel',YTL);
댓글 수: 2
Walter Roberson
2011년 5월 16일
Ummm, 10 to the 1000 ??
Also, the labels so generated will be merely 0 2 4 6 8 10 rather than 1 100 10000 and so on.
edson ferreira
2014년 9월 18일
Thanks Brothers.
Infact I need put in the axis X (0 1 2 3 ......100) not 0 10 20 .... like picture
댓글 수: 1
Image Analyst
2014년 9월 18일
Huh? This question is over 3 years old and asked by someone else, and doesn't appear to be related to your question. Maybe read this and post your own, new question.
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!