datetick with plotyy
조회 수: 14 (최근 30일)
이전 댓글 표시
How do I change the x-axis to dates?
x = 0:0.01:20; y1 = 200*exp(-0.05*x).*sin(x); y2 = 0.8*exp(-0.5*x).*sin(10*x); [AX,H1,H2] = plotyy(x,y1,x,y2,'plot');
datetick('x','yyyy')
makes two x-axis???
댓글 수: 0
채택된 답변
Paulo Silva
2011년 4월 7일
datetick(AX(1),'x','yyyy')
If that still doesn't do what you want you can clear other axis Ticks
set(AX(2),'XTick',[])
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Two y-axis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!