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!