Plotting two loglog y-axes
조회 수: 1 (최근 30일)
이전 댓글 표시
Is there an equivalent function to plotyy that allows you to plot two different loglog y-axes with different scales using the same x-axis?
For example:
x = [1 2 3 4 5 6 7 8 9 10]
y1 = [2 4 6 8 10 12 14 16 18 20]
y2 = [10 20 40 80 160 320 640 1280 2560 5120]
댓글 수: 0
채택된 답변
Matt Fig
2012년 11월 20일
편집: Matt Fig
2012년 11월 20일
AX = plotyy(x,y1,x,y2);
set(AX,'yscale','log') % And maybe xscale too?
추가 답변 (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!