How to condense a plot with a shorter x-axis?
조회 수: 8 (최근 30일)
이전 댓글 표시
Hi,
Please look at attached plots(before and after). I want to condense a plot with x-axis of (0 12E^6) to (0 1) without losing any information of the initial plots. I have tried "linspace" and other methods, seems not working in the way as I wanted it to. Please help!
Tao
댓글 수: 0
답변 (2개)
Star Strider
2020년 2월 19일
Divide the x-axis vector by max(x), assuming ‘x’ is the x-axis vector. That will re-scale it without losing any information.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!