right y-axis
조회 수: 14 (최근 30일)
이전 댓글 표시
I want to have a right y-axis to serve as some reference to the left y-axis. I do not actually need the x-axis data of the right y-axis. Any help will be much appreciated. Thanks.
댓글 수: 0
답변 (2개)
VBBV
2022년 10월 27일
X = rand(20,1); Y = X.^2 + 4; Y1 = Y./2; plot(X,Y); yyaxis right % use this as 2nd yaxis with ref to 1st plot(X,Y1)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!